OLD | NEW |
1 <script src="../../../../../fast/js/resources/js-test-pre.js"></script> | 1 <script src="../../../../../fast/js/resources/js-test-pre.js"></script> |
2 <div id='container'></div> | 2 <div id='container'></div> |
3 <script> | 3 <script> |
4 description("This test checks that we correctly update the touch event handler c
ount when an Input element with default touch handlers changes documents."); | 4 description("This test checks that we correctly update the touch event handler c
ount when an Input element with default touch handlers changes documents."); |
5 | 5 |
6 | 6 |
7 shouldBe('window.internals.touchEventHandlerCount(document)', '0'); | 7 shouldBe('window.internals.touchEventHandlerCount(document)', '0'); |
8 | 8 |
9 // There are two touchable Input elements in Audio's shadow DOM when controls a
re enabled. | 9 // There are two touchable Input elements in Audio's shadow DOM when controls a
re enabled. |
10 var input = document.createElement('audio'); | 10 var input = document.createElement('audio'); |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 input.ontouchend = null; | 22 input.ontouchend = null; |
23 shouldBe('window.internals.touchEventHandlerCount(document)', '2'); | 23 shouldBe('window.internals.touchEventHandlerCount(document)', '2'); |
24 | 24 |
25 document.implementation.createDocument("", "", null).adoptNode(input); | 25 document.implementation.createDocument("", "", null).adoptNode(input); |
26 shouldBe('window.internals.touchEventHandlerCount(document)', '0'); | 26 shouldBe('window.internals.touchEventHandlerCount(document)', '0'); |
27 | 27 |
28 | 28 |
29 </script> | 29 </script> |
30 </body> | 30 </body> |
OLD | NEW |