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

Side by Side Diff: third_party/WebKit/LayoutTests/html/dialog/modal-dialog-blocks-mouse-events.html

Issue 2671603003: Move DIALOG element tests to html/dialog/. (Closed)
Patch Set: Created 3 years, 10 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <style> 4 <style>
5 #inert-div { 5 #inert-div {
6 height: 100px; 6 height: 100px;
7 width: 100px; 7 width: 100px;
8 background: blue; 8 background: blue;
9 } 9 }
10 10
11 dialog { 11 dialog {
12 width: 100px; 12 width: 100px;
13 } 13 }
14 14
15 dialog::backdrop { 15 dialog::backdrop {
16 display: none; 16 display: none;
17 } 17 }
18 18
19 #dialog-div { 19 #dialog-div {
20 height: 100px; 20 height: 100px;
21 width: 100px; 21 width: 100px;
22 background: red; 22 background: red;
23 } 23 }
24 </style> 24 </style>
25 <script src="../../../resources/js-test.js"></script> 25 <script src="../../resources/js-test.js"></script>
26 </head> 26 </head>
27 <body> 27 <body>
28 <div id="inert-div"></div> 28 <div id="inert-div"></div>
29 <dialog id="dialog"> 29 <dialog id="dialog">
30 <div id="dialog-div"></div> 30 <div id="dialog-div"></div>
31 </dialog> 31 </dialog>
32 <script> 32 <script>
33 description('Test for bug 110952. Ensure that mouse events are not ' + 33 description('Test for bug 110952. Ensure that mouse events are not ' +
34 'dispatched to an inert node. To test manually, move the mouse ' + 34 'dispatched to an inert node. To test manually, move the mouse ' +
35 'to the blue box, click, and then move the mouse outside. Then ' + 35 'to the blue box, click, and then move the mouse outside. Then ' +
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 shouldBeFalse('inertDivHandledEvent'); 88 shouldBeFalse('inertDivHandledEvent');
89 shouldBe('Object.keys(handledEvents.document).length', 'expectedEventCountForDoc ument'); 89 shouldBe('Object.keys(handledEvents.document).length', 'expectedEventCountForDoc ument');
90 90
91 debug('Clicking on non-inert box'); 91 debug('Clicking on non-inert box');
92 clickOn(dialogDiv); 92 clickOn(dialogDiv);
93 shouldBeFalse('inertDivHandledEvent'); 93 shouldBeFalse('inertDivHandledEvent');
94 shouldBe('Object.keys(handledEvents.dialogDiv).length', 'events.length'); 94 shouldBe('Object.keys(handledEvents.dialogDiv).length', 'events.length');
95 </script> 95 </script>
96 </body> 96 </body>
97 </html> 97 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698