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

Side by Side Diff: LayoutTests/fast/images/image-map-zoom.html

Issue 14859016: Don't force layout for mouse event hit tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix review comment Created 7 years, 7 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 <html> 1 <html>
2 2
3 <head> 3 <head>
4 4
5 <script> 5 <script>
6 6
7 function runTest() 7 function runTest()
8 { 8 {
9 if (!window.eventSender) 9 if (!window.eventSender)
10 return; 10 return;
11 11
12 testRunner.dumpAsText(); 12 testRunner.dumpAsText();
13 13
14 // Mouse events only work after an initial layout
15 document.body.offsetLeft;
16
14 eventSender.mouseMoveTo(340, 140); 17 eventSender.mouseMoveTo(340, 140);
15 eventSender.mouseDown(); 18 eventSender.mouseDown();
16 eventSender.mouseUp(); 19 eventSender.mouseUp();
17 } 20 }
18 21
19 function setResult(message) 22 function setResult(message)
20 { 23 {
21 document.getElementById('result').firstChild.data = message; 24 document.getElementById('result').firstChild.data = message;
22 } 25 }
23 26
(...skipping 11 matching lines...) Expand all
35 38
36 <hr> 39 <hr>
37 40
38 <p>This tests that client side image maps still work when zooming is in effect.< /p> 41 <p>This tests that client side image maps still work when zooming is in effect.< /p>
39 42
40 <div id="result">TEST NOT RUN</div> 43 <div id="result">TEST NOT RUN</div>
41 44
42 </body> 45 </body>
43 46
44 </html> 47 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/images/image-map-multiple-xhtml.xhtml ('k') | LayoutTests/fast/images/imagemap-case.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698