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

Side by Side Diff: third_party/WebKit/LayoutTests/html/dialog/dialog-autofocus.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 autofocus when a modal dialog is opened.'); 7 description('Tests autofocus when a modal dialog is opened.');
8 8
9 function test() { 9 function test() {
10 shouldBe('document.activeElement', 'document.getElementById("outer-button")' ); 10 shouldBe('document.activeElement', 'document.getElementById("outer-button")' );
11 11
12 var dialog = document.getElementById('dialog'); 12 var dialog = document.getElementById('dialog');
13 dialog.showModal(); 13 dialog.showModal();
14 14
15 autofocusButton = document.getElementById('autofocus-button'); 15 autofocusButton = document.getElementById('autofocus-button');
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 </dialog> 59 </dialog>
60 <div> 60 <div>
61 <span> 61 <span>
62 <button id="autofocus-button" autofocus></button> 62 <button id="autofocus-button" autofocus></button>
63 </span> 63 </span>
64 </div> 64 </div>
65 <button id="another-button" autofocus></button> 65 <button id="another-button" autofocus></button>
66 </dialog> 66 </dialog>
67 </body> 67 </body>
68 </html> 68 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698