Index: LayoutTests/imported/web-platform-tests/html/browsers/history/the-history-interface/history_pushstate_err.html |
diff --git a/LayoutTests/imported/web-platform-tests/html/browsers/history/the-history-interface/history_pushstate_err.html b/LayoutTests/imported/web-platform-tests/html/browsers/history/the-history-interface/history_pushstate_err.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1a4446215f9e9274163425d6582fc196ad4e0f00 |
--- /dev/null |
+++ b/LayoutTests/imported/web-platform-tests/html/browsers/history/the-history-interface/history_pushstate_err.html |
@@ -0,0 +1,18 @@ |
+<!DOCTYPE HTML> |
+<html> |
+ <head> |
+ <title>history_pushState SECURITY_ERR</title> |
+ <script src="../../../../../../resources/testharness.js"></script> |
+ <script src="../../../../../../resources/testharnessreport.js"></script> |
+ </head> |
+ <body> |
+ <div id="log"></div> |
+ <script> |
+ test(function () { |
+ assert_throws("SecurityError", function () { |
+ window.history.pushState(1, document.title, 'http://www.microsoft.com/test.html'); |
+ }); |
+ }, "history pushState SECURITY_ERR"); |
+ </script> |
+ </body> |
+</html> |