mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-18 14:56:07 +00:00
Bug 675710: Add tests for protocol-relative URIs (href=//site/foo) r=bz
This commit is contained in:
parent
8425ed5cfc
commit
d361bb4064
@ -527,7 +527,21 @@ var gTests = [
|
||||
path: "/b/c/y",
|
||||
ref: "",
|
||||
nsIURL: true, nsINestedURI: false },
|
||||
|
||||
// protocol-relative http://tools.ietf.org/html/rfc3986#section-4.2
|
||||
{ spec: "http://www2.example.com/",
|
||||
relativeURI: "//www3.example2.com/bar",
|
||||
scheme: "http",
|
||||
prePath: "http://www3.example2.com",
|
||||
path: "/bar",
|
||||
ref: "",
|
||||
nsIURL: true, nsINestedURI: false },
|
||||
{ spec: "https://www2.example.com/",
|
||||
relativeURI: "//www3.example2.com/bar",
|
||||
scheme: "https",
|
||||
prePath: "https://www3.example2.com",
|
||||
path: "/bar",
|
||||
ref: "",
|
||||
nsIURL: true, nsINestedURI: false },
|
||||
];
|
||||
|
||||
var gHashSuffixes = [
|
||||
|
Loading…
x
Reference in New Issue
Block a user