зеркало из https://github.com/mozilla/gecko-dev.git
Bug 971742 - Re-balance test_URIs and test_URIs2; r=jesup
This commit is contained in:
Родитель
ee4ed9bd25
Коммит
ba19e64cd5
|
@ -247,37 +247,6 @@ var gTests = [
|
|||
path: "/components/",
|
||||
ref: "",
|
||||
nsIURL: true, nsINestedURI: false },
|
||||
{ spec: "view-source:about:blank",
|
||||
scheme: "view-source",
|
||||
prePath: "view-source:",
|
||||
path: "about:blank",
|
||||
ref: "",
|
||||
nsIURL: false, nsINestedURI: true, immutable: true },
|
||||
{ spec: "view-source:http://www.mozilla.org/",
|
||||
scheme: "view-source",
|
||||
prePath: "view-source:",
|
||||
path: "http://www.mozilla.org/",
|
||||
ref: "",
|
||||
nsIURL: false, nsINestedURI: true, immutable: true },
|
||||
{ spec: "x-external:",
|
||||
scheme: "x-external",
|
||||
prePath: "x-external:",
|
||||
path: "",
|
||||
ref: "",
|
||||
nsIURL: false, nsINestedURI: false },
|
||||
{ spec: "x-external:abc",
|
||||
scheme: "x-external",
|
||||
prePath: "x-external:",
|
||||
path: "abc",
|
||||
ref: "",
|
||||
nsIURL: false, nsINestedURI: false },
|
||||
{ spec: "http://www2.example.com/",
|
||||
relativeURI: "a/b/c/d",
|
||||
scheme: "http",
|
||||
prePath: "http://www2.example.com",
|
||||
path: "/a/b/c/d",
|
||||
ref: "",
|
||||
nsIURL: true, nsINestedURI: false },
|
||||
|
||||
// Adding more? Consider adding to test_URIs2.js instead, so that neither
|
||||
// test runs for *too* long, risking timeouts on slow platforms.
|
||||
|
|
|
@ -20,6 +20,37 @@ var gIoService = Components.classes["@mozilla.org/network/io-service;1"]
|
|||
// TEST DATA
|
||||
// ---------
|
||||
var gTests = [
|
||||
{ spec: "view-source:about:blank",
|
||||
scheme: "view-source",
|
||||
prePath: "view-source:",
|
||||
path: "about:blank",
|
||||
ref: "",
|
||||
nsIURL: false, nsINestedURI: true, immutable: true },
|
||||
{ spec: "view-source:http://www.mozilla.org/",
|
||||
scheme: "view-source",
|
||||
prePath: "view-source:",
|
||||
path: "http://www.mozilla.org/",
|
||||
ref: "",
|
||||
nsIURL: false, nsINestedURI: true, immutable: true },
|
||||
{ spec: "x-external:",
|
||||
scheme: "x-external",
|
||||
prePath: "x-external:",
|
||||
path: "",
|
||||
ref: "",
|
||||
nsIURL: false, nsINestedURI: false },
|
||||
{ spec: "x-external:abc",
|
||||
scheme: "x-external",
|
||||
prePath: "x-external:",
|
||||
path: "abc",
|
||||
ref: "",
|
||||
nsIURL: false, nsINestedURI: false },
|
||||
{ spec: "http://www2.example.com/",
|
||||
relativeURI: "a/b/c/d",
|
||||
scheme: "http",
|
||||
prePath: "http://www2.example.com",
|
||||
path: "/a/b/c/d",
|
||||
ref: "",
|
||||
nsIURL: true, nsINestedURI: false },
|
||||
// relative URL testcases from http://greenbytes.de/tech/webdav/rfc3986.html#rfc.section.5.4
|
||||
{ spec: "http://a/b/c/d;p?q",
|
||||
relativeURI: "g:h",
|
||||
|
|
Загрузка…
Ссылка в новой задаче