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

Side by Side Diff: third_party/WebKit/LayoutTests/html/dialog/show-modal-focusing-steps.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 <script src="../../../resources/js-test.js"></script> 4 <script src="../../resources/js-test.js"></script>
5 <script src="../../forms/resources/common.js"></script> 5 <script src="../../fast/forms/resources/common.js"></script>
6 <script> 6 <script>
7 description('Tests focus when a modal dialog is opened.'); 7 description('Tests focus when a modal dialog is opened.');
8 8
9 function test() 9 function test()
10 { 10 {
11 outerButton = document.getElementById('outer-button'); 11 outerButton = document.getElementById('outer-button');
12 shouldBe('document.activeElement', 'outerButton'); 12 shouldBe('document.activeElement', 'outerButton');
13 13
14 debug('Test that focus goes to body if the dialog has no focusable elements, including itself'); 14 debug('Test that focus goes to body if the dialog has no focusable elements, including itself');
15 var outerDialog = document.getElementById('outer-dialog'); 15 var outerDialog = document.getElementById('outer-dialog');
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 <div> 58 <div>
59 <span> 59 <span>
60 <button id="autofocus-button" autofocus></button> 60 <button id="autofocus-button" autofocus></button>
61 </span> 61 </span>
62 </div> 62 </div>
63 <button id="final-button"></button> 63 <button id="final-button"></button>
64 </dialog> 64 </dialog>
65 </dialog> 65 </dialog>
66 </body> 66 </body>
67 </html> 67 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698