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

Side by Side Diff: LayoutTests/fast/dom/elementFromPoint-scaled-scrolled.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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 </head> 4 </head>
5 <body onload="runTest();" style="width:2000px;height:2000px;margin:0px;padding:1 00px"> 5 <body onload="runTest();" style="width:2000px;height:2000px;margin:0px;padding:1 00px">
6 <button style="width:50px;height:50px;">B1</button><button style="width:50px;hei ght:50px;">B2</button><button style="width:50px;height:50px;">B3</button> 6 <button style="width:50px;height:50px;">B1</button><button style="width:50px;hei ght:50px;">B2</button><button style="width:50px;height:50px;">B3</button>
7 <div>This test is successful if elementFromPoint returns the correct element.</d iv> 7 <div>This test is successful if elementFromPoint returns the correct element.</d iv>
8 <div id="result"></div> 8 <div id="result"></div>
9 <script> 9 <script>
10 function runTest() { 10 function runTest() {
11 if (window.internals) 11 if (window.eventSender)
12 window.internals.setPageScaleFactor(2, 0, 0); 12 window.eventSender.setPageScaleFactor(2, 0, 0);
13 window.scrollTo(100,100); 13 window.scrollTo(100,100);
14 14
15 if (window.testRunner) 15 if (window.testRunner)
16 testRunner.dumpAsText(); 16 testRunner.dumpAsText();
17 17
18 document.getElementById("result").innerText = document.elementFromPoint(125, 25).innerText; 18 document.getElementById("result").innerText = document.elementFromPoint(125, 25).innerText;
19 } 19 }
20 </script> 20 </script>
21 </script> 21 </script>
22 </body> 22 </body>
23 </html> 23 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/Range/scale-page-client-rects.html ('k') | LayoutTests/fast/dom/iframe-inner-size-scaling.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698