Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(629)

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/browsers/history/the-history-interface/006.html

Issue 1984023002: Move web-platform-tests to wpt (part 1 of 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/browsers/history/the-history-interface/006.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/browsers/history/the-history-interface/006.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/browsers/history/the-history-interface/006.html
deleted file mode 100644
index a75a4e73dc61cd8a53105a1a5751f8e019f10c4a..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/browsers/history/the-history-interface/006.html
+++ /dev/null
@@ -1,53 +0,0 @@
-<!doctype html>
-<html>
- <head>
- <title>Firing popstate after onload, even if there is no pushed/replaced state</title>
- <script type="text/javascript" src="../../../../../../resources/testharness.js"></script>
- <script type="text/javascript" src="../../../../../../resources/testharnessreport.js"></script>
- <script type="text/javascript">
-
-//spec (25 March 2011 draft) states that popstate must not fire after onload unless there is a pushed/replaced state that is navigated
-var popfired = false;
-setup({explicit_done:true});
-window.addEventListener('popstate',function (e) { popfired = true; },false);
-test(function () {
- assert_equals( history.state, null );
-}, 'history.state should initially be null');
-window.onload = function () {
- test(function () {
- assert_false( popfired );
- }, 'popstate event should not fire before onload fires');
- test(function () {
- assert_equals( history.state, null );
- }, 'history.state should still be null onload');
- popfired = false;
- setTimeout(function () {
- test(function () {
- assert_false( popfired );
- }, 'popstate event should not fire after onload fires');
- test(function () {
- assert_equals( history.state, null );
- }, 'history.state should still be null after onload');
- test(function () {
- var failed = false, realstate = history.state;
- try {
- history.state = '';
- } catch(e) {
- failed = e;
- }
- assert_equals(history.state,realstate,'property was read/write');
- assert_false(failed);
- }, 'writing to history.state should be silently ignored and not throw an error');
- done();
- },100);
-};
-
- </script>
- </head>
- <body>
-
- <noscript><p>Enable JavaScript and reload</p></noscript>
- <div id="log"></div>
-
- </body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698