Bug 1931425 - Limit how often moz-label's #setStyles runs r=reusable-components-revie...
[gecko.git] / netwerk / test / unit / test_bug376844.js
blob5184a30e5426e463f4515dc89ddbfbeb66f0fddd
1 "use strict";
3 const testURLs = [
4 ["http://example.com/<", "http://example.com/%3C"],
5 ["http://example.com/>", "http://example.com/%3E"],
6 ["http://example.com/'", "http://example.com/'"],
7 ['http://example.com/"', "http://example.com/%22"],
8 ["http://example.com/?<", "http://example.com/?%3C"],
9 ["http://example.com/?>", "http://example.com/?%3E"],
10 ["http://example.com/?'", "http://example.com/?%27"],
11 ['http://example.com/?"', "http://example.com/?%22"],
14 function run_test() {
15 for (var i = 0; i < testURLs.length; i++) {
16 var uri = Services.io.newURI(testURLs[i][0]);
17 Assert.equal(uri.spec, testURLs[i][1]);