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 <style> | 5 <style> |
6 #touchActionDiv { | 6 #touchActionDiv { |
7 height: 50px; | 7 height: 50px; |
8 width: 200px; | 8 width: 200px; |
9 border: 1px solid blue; | 9 border: 1px solid blue; |
10 } | 10 } |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 div.style.touchAction = "auto"; | 91 div.style.touchAction = "auto"; |
92 shouldBe("getTouchHandlerCount(document)", "1"); | 92 shouldBe("getTouchHandlerCount(document)", "1"); |
93 | 93 |
94 debug("touch-action on div inside frame should add a handler"); | 94 debug("touch-action on div inside frame should add a handler"); |
95 var iframe = document.createElement("iframe"); | 95 var iframe = document.createElement("iframe"); |
96 document.body.appendChild(iframe); | 96 document.body.appendChild(iframe); |
97 nestedDocument = iframe.contentWindow.document; | 97 nestedDocument = iframe.contentWindow.document; |
98 nestedDocument.open('text/html', 'replace'); | 98 nestedDocument.open('text/html', 'replace'); |
99 nestedDocument.write("<!DOCTYPE html>\n<div style='touch-action: none'></div
>"); | 99 nestedDocument.write("<!DOCTYPE html>\n<div style='touch-action: none'></div
>"); |
100 window.internals.forceCompositingUpdate(document); | 100 window.internals.forceCompositingUpdate(document); |
101 shouldBe("getTouchHandlerCount(nestedDocument)", "1"); | 101 shouldBe("getTouchHandlerCount(nestedDocument)", "2"); |
102 shouldBe("getTouchHandlerCount(document)", "2"); | 102 shouldBe("getTouchHandlerCount(document)", "2"); |
103 } | 103 } |
104 </script> | 104 </script> |
105 </body> | 105 </body> |
106 </html> | 106 </html> |
OLD | NEW |