| 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 | 3 |
| 4 <div id="div1"></div> | 4 <div id="div1"></div> |
| 5 <div id="div2"></div> | 5 <div id="div2"></div> |
| 6 | 6 |
| 7 <script> | 7 <script> |
| 8 description('This tests ensures that an event listener on an attribute node insi
de a shadow DOM is properly unregistered when parent element of the attribute is
moved to a new document.'); | 8 description('This tests ensures that an event listener on an attribute node insi
de a shadow DOM is properly unregistered when parent element of the attribute is
moved to a new document.'); |
| 9 | 9 |
| 10 var div1 = document.getElementById('div1'); | 10 var div1 = document.getElementById('div1'); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 // Move the shadow host into a new document. | 22 // Move the shadow host into a new document. |
| 23 var doc = document.implementation.createDocument('http://www.w3.org/1999/xhtml',
'html'); | 23 var doc = document.implementation.createDocument('http://www.w3.org/1999/xhtml',
'html'); |
| 24 doc.adoptNode(div2); | 24 doc.adoptNode(div2); |
| 25 | 25 |
| 26 // Make sure the handler was unregistered. | 26 // Make sure the handler was unregistered. |
| 27 if (window.internals) | 27 if (window.internals) |
| 28 shouldBe('window.internals.touchEventHandlerCount(document)', '0'); | 28 shouldBe('window.internals.touchEventHandlerCount(document)', '0'); |
| 29 | 29 |
| 30 </script> | 30 </script> |
| OLD | NEW |