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

Side by Side Diff: LayoutTests/fast/events/touch/touch-input-element-change-documents.html

Issue 11571072: Revert 138189 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1364/
Patch Set: Created 8 years 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
« no previous file with comments | « no previous file | LayoutTests/fast/events/touch/touch-input-element-change-documents-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <script src="../../../../../fast/js/resources/js-test-pre.js"></script>
2 <div id='container'></div>
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.");
5
6
7 shouldBe('window.internals.touchEventHandlerCount(document)', '0');
8
9 // There are two touchable Input elements in Audio's shadow DOM when controls a re enabled.
10 var input = document.createElement('audio');
11 input.setAttribute("controls", true);
12 var container = document.getElementById('container');
13
14 shouldBe('window.internals.touchEventHandlerCount(document)', '0');
15
16 container.appendChild(input);
17 shouldBe('window.internals.touchEventHandlerCount(document)', '2');
18
19 input.ontouchend = function() { };
20 shouldBe('window.internals.touchEventHandlerCount(document)', '3');
21
22 input.ontouchend = null;
23 shouldBe('window.internals.touchEventHandlerCount(document)', '2');
24
25 document.implementation.createDocument("", "", null).adoptNode(input);
26 shouldBe('window.internals.touchEventHandlerCount(document)', '0');
27
28
29 </script>
30 </body>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/events/touch/touch-input-element-change-documents-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698