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

Side by Side Diff: LayoutTests/fast/transforms/selection-bounds-in-transformed-view.html

Issue 18546003: Fix tests to avoid page scale reset when setting page scale. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use setPageScaleFactorLimits(). Created 7 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <body style="font: 20px ahem; margin: 0;"> 1 <body style="font: 20px ahem; margin: 0;">
2 <div id="result" style="outline: solid blue; height: 100px; width: 100px; -w ebkit-transform: translatez(0)"></div> 2 <div id="result" style="outline: solid blue; height: 100px; width: 100px; -w ebkit-transform: translatez(0)"></div>
3 <div style="height: 900px"></div> 3 <div style="height: 900px"></div>
4 <div style="height: 100px;">target</div> 4 <div style="height: 100px;">target</div>
5 <div style="height: 1000px;"></div> 5 <div style="height: 1000px;"></div>
6 <script> 6 <script>
7 if (window.testRunner && window.internals) { 7 if (window.testRunner && window.eventSender) {
8 testRunner.dumpAsText(); 8 testRunner.dumpAsText();
9 window.internals.setPageScaleFactor(2, 0, 0); 9 window.eventSender.setPageScaleFactor(2, 0, 0);
10 } 10 }
11 11
12 document.execCommand("FindString", false, "target"); 12 document.execCommand("FindString", false, "target");
13 document.getElementById("result").innerText = document.body.scrollTop == = 864 ? "PASS" : "FAIL"; 13 document.getElementById("result").innerText = document.body.scrollTop == = 864 ? "PASS" : "FAIL";
14 </script> 14 </script>
15 </body> 15 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698