| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../../../resources/js-test.js"></script> | 2 <script src="../../../resources/js-test.js"></script> |
| 3 <script src="resources/shadow-dom.js"></script> | 3 <script src="resources/shadow-dom.js"></script> |
| 4 <body> | 4 <body> |
| 5 <pre id="console"></pre> | 5 <pre id="console"></pre> |
| 6 <input id="defaultFocus"> | 6 <input id="defaultFocus"> |
| 7 <div id="sandbox"></div> | 7 <div id="sandbox"></div> |
| 8 </body> | 8 </body> |
| 9 <script> | 9 <script> |
| 10 description('Click inside focusable shadow host should focus the host.'); | 10 description('Click inside focusable shadow host should focus the host.'); |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 shouldBe('inputA.selectionEnd', '1'); | 94 shouldBe('inputA.selectionEnd', '1'); |
| 95 | 95 |
| 96 clickOn(inputB); | 96 clickOn(inputB); |
| 97 checkInnermostActiveElement('shadowHost/inputB'); | 97 checkInnermostActiveElement('shadowHost/inputB'); |
| 98 clickOn(innerDiv); | 98 clickOn(innerDiv); |
| 99 checkInnermostActiveElement('shadowHost/inputB'); | 99 checkInnermostActiveElement('shadowHost/inputB'); |
| 100 shouldBe('inputB.selectionStart', '1'); | 100 shouldBe('inputB.selectionStart', '1'); |
| 101 shouldBe('inputB.selectionEnd', '1'); | 101 shouldBe('inputB.selectionEnd', '1'); |
| 102 } | 102 } |
| 103 | 103 |
| 104 if (window.testRunner) | |
| 105 testRunner.dumpAsText(); | |
| 106 | |
| 107 if (!window.eventSender) | 104 if (!window.eventSender) |
| 108 testFailed(''); | 105 testFailed(''); |
| 109 | 106 |
| 110 window.onload = runTest; | 107 window.onload = runTest; |
| 111 </script> | 108 </script> |
| OLD | NEW |