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

Side by Side Diff: third_party/WebKit/LayoutTests/html/dialog/modal-dialog-ancestor-is-inert.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 #ancestor { 5 #ancestor {
6 position: absolute; 6 position: absolute;
7 height: 50px; 7 height: 50px;
8 width: 50px; 8 width: 50px;
9 top: 200px; 9 top: 200px;
10 left: 100px; 10 left: 100px;
11 border: 1px solid; 11 border: 1px solid;
12 } 12 }
13 13
14 dialog { 14 dialog {
15 height: 50px; 15 height: 50px;
16 width: 50px; 16 width: 50px;
17 top: 200px; 17 top: 200px;
18 left: 200px; 18 left: 200px;
19 margin: 0; 19 margin: 0;
20 } 20 }
21 21
22 dialog::backdrop { 22 dialog::backdrop {
23 display: none; 23 display: none;
24 } 24 }
25 </style> 25 </style>
26 <script src="../../../resources/js-test.js"></script> 26 <script src="../../resources/js-test.js"></script>
27 </head> 27 </head>
28 <body> 28 <body>
29 <div id="ancestor"> 29 <div id="ancestor">
30 <dialog></dialog> 30 <dialog></dialog>
31 </div> 31 </div>
32 <script> 32 <script>
33 function clickOn(element) 33 function clickOn(element)
34 { 34 {
35 var rect = element.getBoundingClientRect(); 35 var rect = element.getBoundingClientRect();
36 eventSender.mouseMoveTo(rect.left + rect.width / 2, rect.top + rect.height / 2); 36 eventSender.mouseMoveTo(rect.left + rect.width / 2, rect.top + rect.height / 2);
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 debug('Clicking on dialog'); 102 debug('Clicking on dialog');
103 clickOn(dialog); 103 clickOn(dialog);
104 shouldBeTrue('handledEvent.document'); 104 shouldBeTrue('handledEvent.document');
105 shouldBeTrue('handledEvent.body'); 105 shouldBeTrue('handledEvent.body');
106 shouldBeTrue('handledEvent.dialog'); 106 shouldBeTrue('handledEvent.dialog');
107 shouldBeTrue('handledEvent.div'); 107 shouldBeTrue('handledEvent.div');
108 } 108 }
109 </script> 109 </script>
110 </body> 110 </body>
111 </html> 111 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698