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

Unified Diff: LayoutTests/fast/loader/stateobjects/popstate-fires-on-history-traversal.html

Issue 40513003: Delete/move the remaining stale tests in TestExpectations. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: delete plugins/reentrant-update-widget-positions.html as well Created 7 years, 2 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: LayoutTests/fast/loader/stateobjects/popstate-fires-on-history-traversal.html
diff --git a/LayoutTests/fast/loader/stateobjects/popstate-fires-on-history-traversal.html b/LayoutTests/fast/loader/stateobjects/popstate-fires-on-history-traversal.html
deleted file mode 100644
index 21b17539cdda3f6691e8cb7f37acaceb29999913..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/loader/stateobjects/popstate-fires-on-history-traversal.html
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<script src="../../js/resources/js-test-pre.js"></script>
-<div id="description"></div>
-<pre id="console"></pre>
-<script>
-description('Tests that popstate events fire for all history traversals (including navigation to fragments), not just when going back to a state object created via pushState.');
-
-onload = function()
-{
- setTimeout(step, 0);
-}
-
-var currentStep = 0;
-var popstateFireCount = 0;
-
-function step()
-{
- switch (currentStep) {
- case 0:
- debug('setting hash to #state1');
- location.hash = '#state1';
- break;
- case 1:
- debug('setting hash to #state2');
- location.hash = '#state2';
- break;
- case 2:
- debug('going back');
- history.back();
- break;
- case 3:
- debug('going back');
- history.back();
- break;
- case 4:
- // The 5 expected popstate events are when:
- // 1. The page loads
- // 2. Navigating to #state1
- // 3. Navigating to #state2
- // 4. Going back to #state1
- // 5. Going back to the initial page state
- shouldBe('popstateFireCount', '5');
- finishJSTest();
- return;
- default:
- testFailed('unexpected state: ' + currentStep);
- break;
- }
-
- currentStep++;
-
- setTimeout(step, 0);
-}
-
-onpopstate = function(event)
-{
- debug('popstate fired with state ' + event.state);
- popstateFireCount++;
-}
-var jsTestIsAsync = true;
-</script>
-<script src="../../js/resources/js-test-post.js"></script>
-</html>

Powered by Google App Engine
This is Rietveld 408576698