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