Bug 658949 patch 2: Refest & xpcshell-test-addition for this bug. r=bz a=sheriff

This commit is contained in:
Daniel Holbert 2011-05-24 03:39:31 -07:00
parent 9c8854da80
commit 0932137d8d
4 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1 @@
<iframe src="data:text/html,ABC"></iframe>

View File

@ -0,0 +1 @@
<iframe src="data:text/html,ABC#myRef"></iframe>

View File

@ -1,2 +1,2 @@
== bug565432-1.html bug565432-1-ref.html == bug565432-1.html bug565432-1-ref.html
== 658949-1.html 658949-1-ref.html

View File

@ -5,6 +5,12 @@ const Ci = Components.interfaces;
// TEST DATA // TEST DATA
// --------- // ---------
var gTests = [ var gTests = [
{ spec: "about:blank",
scheme: "about",
prePath: "about:",
path: "blank",
ref: "",
nsIURL: false, nsINestedURI: true, immutable: true },
{ spec: "about:foobar", { spec: "about:foobar",
scheme: "about", scheme: "about",
prePath: "about:", prePath: "about:",
@ -77,6 +83,12 @@ var gTests = [
path: "resource://gre/chrome.toolkit.jar!/", path: "resource://gre/chrome.toolkit.jar!/",
ref: "", ref: "",
nsIURL: true, nsINestedURI: true }, 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/", { spec: "resource://gre/",
scheme: "resource", scheme: "resource",
prePath: "resource://gre", prePath: "resource://gre",
@ -218,6 +230,10 @@ function do_test_uri_with_hash_suffix(aTest, aSuffix) {
var testURI = NetUtil.newURI(aTest.spec + aSuffix); var testURI = NetUtil.newURI(aTest.spec + aSuffix);
var origURI = NetUtil.newURI(aTest.spec); 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 + do_info("testing " + aTest.spec +
" doesn't equal self with '" + aSuffix + "' appended"); " doesn't equal self with '" + aSuffix + "' appended");
if (aTest.spec == "file://") { if (aTest.spec == "file://") {