| OLD | NEW |
| 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 Loading... |
| 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> |
| OLD | NEW |