| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../../fast/js/resources/js-test-pre.js"></script> |
| 5 <script src="../../fast/dom/resources/event-sender-util.js"></script> | 5 <script src="../../fast/dom/resources/event-sender-util.js"></script> |
| 6 <script src="../../fast/dom/resources/shadow-test-driver.js"></script> | 6 <script src="../../fast/dom/resources/shadow-test-driver.js"></script> |
| 7 </head> | 7 </head> |
| 8 <body> | 8 <body> |
| 9 | 9 |
| 10 <p>Nodes of the selection for an orphan shadow root should return null.</p> | 10 <p>Nodes of the selection for an orphan shadow root should return null.</p> |
| 11 | 11 |
| 12 <pre id="console"></pre> | 12 <pre id="console"></pre> |
| 13 | 13 |
| 14 <script> | 14 <script> |
| 15 var host = document.createElement('div'); | 15 var host = document.createElement('div'); |
| 16 var shadowRoot = host.createShadowRoot(); | 16 var shadowRoot = host.createShadowRoot(); |
| 17 shadowRoot.innerHTML = "Kotori Otonashi" | 17 shadowRoot.innerHTML = "Kotori Otonashi" |
| 18 | 18 |
| 19 var selection = shadowRoot.getSelection(); | 19 var selection = shadowRoot.getSelection(); |
| 20 | 20 |
| 21 shouldBe('selection.anchorNode', 'null'); | 21 shouldBe('selection.anchorNode', 'null'); |
| 22 shouldBe('selection.focusNode', 'null'); | 22 shouldBe('selection.focusNode', 'null'); |
| 23 shouldBe('selection.baseNode', 'null'); | 23 shouldBe('selection.baseNode', 'null'); |
| 24 shouldBe('selection.extentNode', 'null'); | 24 shouldBe('selection.extentNode', 'null'); |
| 25 | 25 |
| 26 var successfullyParsed = true; | 26 var successfullyParsed = true; |
| 27 </script> | 27 </script> |
| 28 <script src="../../fast/js/resources/js-test-post.js"></script> | |
| 29 </body> | 28 </body> |
| 30 | 29 |
| 31 </html> | 30 </html> |
| OLD | NEW |