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