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

Unified Diff: LayoutTests/fast/loader/resources/page-scale-resets-on-new-navigation-child.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/resources/page-scale-resets-on-new-navigation-child.html
diff --git a/LayoutTests/fast/loader/resources/page-scale-resets-on-new-navigation-child.html b/LayoutTests/fast/loader/resources/page-scale-resets-on-new-navigation-child.html
new file mode 100644
index 0000000000000000000000000000000000000000..c3396685c07c1669456e41da98f19e34ee9f27c8
--- /dev/null
+++ b/LayoutTests/fast/loader/resources/page-scale-resets-on-new-navigation-child.html
@@ -0,0 +1,22 @@
+<html>
+ <head>
+ <script>
+ function finishTest() {
+ var pageScale = 2
+ if (window.internals) {
+ pageScale = internals.pageScaleFactor();
+ }
+ if (pageScale == 1) {
+ var result = document.getElementById("result");
+ result.innerHTML = "Success! The page scale factor was reset."
+ }
+ if (window.testRunner) {
+ testRunner.notifyDone();
+ }
+ }
+ </script>
+ </head>
+ <body style="width:800px" onpageshow="finishTest();">
+ <div id="result">Fail. The page scale factor was not reset.</div><br/>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698