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

Side by Side Diff: LayoutTests/fast/events/mouse-focus-imagemap.html

Issue 48903019: Delete js-test-post.js. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../js/resources/js-test-pre.js"></script> 4 <script src="../js/resources/js-test-pre.js"></script>
5 <body id="body"> 5 <body id="body">
6 6
7 <img id="image" usemap="#map" src="data:image/gif;base64,R0lGODlhAQABAIAAAOTm7AA AACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" width="1000" height="1000" alt="" style=" border:1px solid black;"> 7 <img id="image" usemap="#map" src="data:image/gif;base64,R0lGODlhAQABAIAAAOTm7AA AACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" width="1000" height="1000" alt="" style=" border:1px solid black;">
8 <map name="map" id="map"> 8 <map name="map" id="map">
9 9
10 <area id="focusable-area" tabindex="0" shape="rect" coords="0,0,500,500" hre f="#" role="img" title="Example 1"> 10 <area id="focusable-area" tabindex="0" shape="rect" coords="0,0,500,500" hre f="#" role="img" title="Example 1">
(...skipping 16 matching lines...) Expand all
27 27
28 // Try to focus on the <area> that is NOT focusable. Focus should still rema in on focusable-area. 28 // Try to focus on the <area> that is NOT focusable. Focus should still rema in on focusable-area.
29 eventSender.mouseMoveTo(700, 700); 29 eventSender.mouseMoveTo(700, 700);
30 eventSender.mouseDown(); 30 eventSender.mouseDown();
31 eventSender.mouseUp(); 31 eventSender.mouseUp();
32 32
33 // Some platforms (QT) set focus to the body if clicking on a non-focusable area. 33 // Some platforms (QT) set focus to the body if clicking on a non-focusable area.
34 shouldBe("document.activeElement.id == 'focusable-area' || document.activeEl ement.id == 'body'", "true"); 34 shouldBe("document.activeElement.id == 'focusable-area' || document.activeEl ement.id == 'body'", "true");
35 </script> 35 </script>
36 36
37 <script src="../js/resources/js-test-post.js"></script>
38 </body> 37 </body>
39 </html> 38 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698