mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Bug 658949 patch 2: Refest & xpcshell-test-addition for this bug. r=bz
This commit is contained in:
parent
5d3f90bd2b
commit
0e1884e484
1
netwerk/test/reftest/658949-1-ref.html
Normal file
1
netwerk/test/reftest/658949-1-ref.html
Normal file
@ -0,0 +1 @@
|
||||
<iframe src="data:text/html,ABC"></iframe>
|
1
netwerk/test/reftest/658949-1.html
Normal file
1
netwerk/test/reftest/658949-1.html
Normal file
@ -0,0 +1 @@
|
||||
<iframe src="data:text/html,ABC#myRef"></iframe>
|
@ -1,2 +1,2 @@
|
||||
== bug565432-1.html bug565432-1-ref.html
|
||||
|
||||
== 658949-1.html 658949-1-ref.html
|
||||
|
@ -5,6 +5,12 @@ const Ci = Components.interfaces;
|
||||
// TEST DATA
|
||||
// ---------
|
||||
var gTests = [
|
||||
{ spec: "about:blank",
|
||||
scheme: "about",
|
||||
prePath: "about:",
|
||||
path: "blank",
|
||||
ref: "",
|
||||
nsIURL: false, nsINestedURI: true, immutable: true },
|
||||
{ spec: "about:foobar",
|
||||
scheme: "about",
|
||||
prePath: "about:",
|
||||
@ -77,6 +83,12 @@ var gTests = [
|
||||
path: "resource://gre/chrome.toolkit.jar!/",
|
||||
ref: "",
|
||||
nsIURL: true, nsINestedURI: true },
|
||||
{ spec: "place:redirectsMode=2&sort=8&maxResults=10",
|
||||
scheme: "place",
|
||||
prePath: "place:",
|
||||
path: "redirectsMode=2&sort=8&maxResults=10",
|
||||
ref: "",
|
||||
nsIURL: false, nsINestedURI: false },
|
||||
{ spec: "resource://gre/",
|
||||
scheme: "resource",
|
||||
prePath: "resource://gre",
|
||||
@ -218,6 +230,10 @@ function do_test_uri_with_hash_suffix(aTest, aSuffix) {
|
||||
var testURI = NetUtil.newURI(aTest.spec + aSuffix);
|
||||
var origURI = NetUtil.newURI(aTest.spec);
|
||||
|
||||
do_info("testing " + aTest.spec + " with '" + aSuffix + "' appended " +
|
||||
"equals a clone of itself");
|
||||
do_check_uri_eq(testURI, testURI.clone());
|
||||
|
||||
do_info("testing " + aTest.spec +
|
||||
" doesn't equal self with '" + aSuffix + "' appended");
|
||||
if (aTest.spec == "file://") {
|
||||
|
Loading…
Reference in New Issue
Block a user