Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / dom / location-hash.html
index 15aa107..a6018ad 100644 (file)
             shouldBe('window.location.hash', '#foo');
             shouldBe("window.location == originalLocation + '#foo'", true);
             window.location.hash = '';
+            shouldBe('window.location.hash', '');
+            shouldBe("window.location == originalLocation + '#'", true);
+            window.location.hash = '#';
+            shouldBe('window.location.hash', '');
+            shouldBe("window.location == originalLocation + '#'", true);
             if (numErrors == 0)
                 print("SUCCESS!", "green")
             else