Index: LayoutTests/imported/web-platform-tests/html/browsers/history/the-location-interface/location_search.html |
diff --git a/LayoutTests/imported/web-platform-tests/html/browsers/history/the-location-interface/location_search.html b/LayoutTests/imported/web-platform-tests/html/browsers/history/the-location-interface/location_search.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d7071ace03cef05141b651824b0ff36a37bb20f6 |
--- /dev/null |
+++ b/LayoutTests/imported/web-platform-tests/html/browsers/history/the-location-interface/location_search.html |
@@ -0,0 +1,20 @@ |
+<!DOCTYPE HTML> |
+<html> |
+ <head> |
+ <title>location_search</title> |
+ <script src="../../../../../../resources/testharness.js"></script> |
+ <script src="../../../../../../resources/testharnessreport.js"></script> |
+ </head> |
+ <body> |
+ <div id="log"></div> |
+ <script> |
+ test(function () { |
+ window.history.pushState(1, document.title, '?x=1'); |
+ var search = location.search; |
+ |
+ assert_equals(search, "?x=1", "search"); |
+ |
+ }, "location search"); |
+ </script> |
+ </body> |
+</html> |