Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / dom / HTMLAnchorElement / script-tests / set-href-attribute-hash.js
index 66d6c97..4cd3ed9 100644 (file)
@@ -30,11 +30,11 @@ a.hash = null;
 shouldBe("a.href", "'https://www.mydomain.com/path/testurl.html#null'");
 
 // Firefox 3.5.2 removes the '#' at the end, and it should per
-// http://dev.w3.org/html5/spec/infrastructure.html#url-decomposition-idl-attributes .
+// http://url.spec.whatwg.org/#dom-url-hash
 debug("Set hash to empty string");
 a.href = "https://www.mydomain.com/path/testurl.html#middle";
 a.hash = "";
-shouldBe("a.href", "'https://www.mydomain.com/path/testurl.html#'");
+shouldBe("a.href", "'https://www.mydomain.com/path/testurl.html'");
 
 // Firefox 3.5.2 does not allow setting hash to mailto: scheme, and it should.
 debug("Add hash to mailto: protocol");
@@ -52,7 +52,7 @@ shouldBe("a.href", "'file:///some%20path#hash value'");
 debug("Set hash to '#'");
 a.href = "http://mydomain.com#middle";
 a.hash = "#";
-shouldBe("a.href", "'http://mydomain.com/#'");
+shouldBe("a.href", "'http://mydomain.com/'");
 
 // Firefox 3.5.2 does not allow setting hash to foo: scheme, and it should.
 debug("Add hash to non-standard protocol");