Chromium Code Reviews

Unified Diff: LayoutTests/fast/dom/location-hash.html

Issue 537103002: Spec compliant url.search/url.hash setters over empty values. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Sync expected output Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: LayoutTests/fast/dom/location-hash.html
diff --git a/LayoutTests/fast/dom/location-hash.html b/LayoutTests/fast/dom/location-hash.html
index 15aa107572ac4eff889b746733b03e1b05aee3ce..a6018ad84ba7ba2c084f9fe97817f4fb7e9026e3 100644
--- a/LayoutTests/fast/dom/location-hash.html
+++ b/LayoutTests/fast/dom/location-hash.html
@@ -79,6 +79,11 @@
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

Powered by Google App Engine