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

Unified Diff: LayoutTests/loader/go-back-to-different-window-size.html

Issue 14195011: Removed WONTFIX tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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/loader/go-back-to-different-window-size.html
diff --git a/LayoutTests/loader/go-back-to-different-window-size.html b/LayoutTests/loader/go-back-to-different-window-size.html
deleted file mode 100644
index 8ac3ab3c8b580677fdb7d65abdddfe3717195703..0000000000000000000000000000000000000000
--- a/LayoutTests/loader/go-back-to-different-window-size.html
+++ /dev/null
@@ -1,43 +0,0 @@
-<html>
-<script>
-
-// Navigation steps:
-// 1- loads this page
-// 2- resizes the window to (300, 300)
-// 3- loads a data URL that resizes the window to (1000, 1000) and navigates back
-// 4- loads this page which will restore the timer to check the window width to make sure it's > 300
-function verifyWindowSizeAfterNavigateBackToCachedPage() {
- document.body.innerHTML = (window.innerWidth > 300) ? 'PASS' : 'FAIL';
- if (window.testRunner)
- testRunner.notifyDone();
-}
-
-function navigateAwayAndBack() {
- // Assigning to location does not create a history entry, so
- // instead we simulate a link click.
- var evt = document.createEvent("MouseEvents");
- evt.initMouseEvent("click", true, true, window,
- 0, 0, 0, 0, 0, false, false, false, false, 0, null);
- document.getElementById('anchor').dispatchEvent(evt);
- // Wait a long while so the verification is done after we have navigated back to the cached version of this page.
- // This test makes use of the behavior where timers are restored on a cached page.
- // We don't need to depend on this long timer when pageshow event is implemented for b/f cache (<rdar://problem/6440869>).
- window.setTimeout("verifyWindowSizeAfterNavigateBackToCachedPage()", 1000);
-}
-
-function runTestStep() {
- if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
- testRunner.overridePreference("WebKitUsesPageCachePreferenceKey", 1);
- }
- window.resizeTo(300, 300);
- // Wait a bit before navigating away to make sure we have done layout due to the resizing.
- window.setTimeout("navigateAwayAndBack()", 200);
-}
-
-</script>
-<body onload='runTestStep()' style="background: yellow">
- <a id='anchor' href='data:text/html,<body onload="window.resizeTo(1000, 1000); history.back()"></body>'>go away, resize window, and come back</a>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698