Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(198)

Side by Side Diff: LayoutTests/fast/events/touch/touch-action-touch-handlers.html

Issue 225903009: Migrate touch events to EventHandlerRegistry (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased. Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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");
Rick Byers 2014/06/19 17:10:36 why this change? I'd expect 1.
Sami 2014/06/27 17:58:51 Both documents now point to the same (global) regi
Rick Byers 2014/06/27 21:36:51 Ah, of course - thanks.
102 shouldBe("getTouchHandlerCount(document)", "2"); 102 shouldBe("getTouchHandlerCount(document)", "2");
103 } 103 }
104 </script> 104 </script>
105 </body> 105 </body>
106 </html> 106 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/events/touch/touch-action-touch-handlers-expected.txt » ('j') | Source/core/dom/Node.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698