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

Unified Diff: LayoutTests/fast/loader/page-scale-resets-on-new-navigation.html

Issue 14643011: Reset page scale factor to 1.0 on navigation to a new page. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Revise, add test. 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/fast/loader/page-scale-resets-on-new-navigation.html
diff --git a/LayoutTests/fast/loader/page-scale-resets-on-new-navigation.html b/LayoutTests/fast/loader/page-scale-resets-on-new-navigation.html
new file mode 100644
index 0000000000000000000000000000000000000000..24639fce0702671378250a7b272f52b7720a3100
--- /dev/null
+++ b/LayoutTests/fast/loader/page-scale-resets-on-new-navigation.html
@@ -0,0 +1,25 @@
+<html>
+<head>
+<script>
+
+ function navigate()
+ {
+ if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+ }
+
+ if (window.internals)
+ internals.setPageScaleFactor(2, 0, 0);
+
+ setTimeout("window.location.href = 'resources/page-scale-resets-on-new-navigation-child.html'", 0);
+ return;
+ }
+
+</script>
+
+</head>
+<body style="width:800px" onpageshow="navigate()">
+ <div id="result">Fail. The navigation did not occur.</div><br/>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698