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

Unified Diff: LayoutTests/fast/events/touch/touch-handler-count.html

Issue 225903009: Migrate touch events to EventHandlerRegistry (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix indendation problems (added by meld?) Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/events/touch/touch-handler-count.html
diff --git a/LayoutTests/fast/events/touch/touch-handler-count.html b/LayoutTests/fast/events/touch/touch-handler-count.html
index f63feed6a7814f23867b140ef6df96cb6810a9f6..7cf88e8f7ec042942d72359252892e7fcb3d6351 100644
--- a/LayoutTests/fast/events/touch/touch-handler-count.html
+++ b/LayoutTests/fast/events/touch/touch-handler-count.html
@@ -236,20 +236,20 @@ debug("Test that nested Documents' touch handlers are properly tracked in their
nestedDocument.open('text/html', 'replace');
nestedDocument.write('<!DOCTYPE html>\n<script>\nwindow.ontouchstart=function(){};\n</' + 'script>\n' +
'<div id=twoHandlers ontouchmove="function(){}" ontouchcancel="function(){}"></div>');
- shouldBe('window.internals.touchEventHandlerCount(nestedDocument)', '3');
- shouldBe('window.internals.touchEventHandlerCount(document)', '2');
+ shouldBe('window.internals.touchEventHandlerCount(nestedDocument)', '4');
+ shouldBe('window.internals.touchEventHandlerCount(document)', '4');
nestedDocument.write('<script>window.ontouchstart=undefined</' + 'script>\n');
- shouldBe('window.internals.touchEventHandlerCount(nestedDocument)', '2');
- shouldBe('window.internals.touchEventHandlerCount(document)', '2');
+ shouldBe('window.internals.touchEventHandlerCount(nestedDocument)', '3');
+ shouldBe('window.internals.touchEventHandlerCount(document)', '3');
nestedDocument.write('<script>document.addEventListener("touchmove", function(){});</' + 'script>\n');
- shouldBe('window.internals.touchEventHandlerCount(nestedDocument)', '3');
- shouldBe('window.internals.touchEventHandlerCount(document)', '2');
+ shouldBe('window.internals.touchEventHandlerCount(nestedDocument)', '4');
+ shouldBe('window.internals.touchEventHandlerCount(document)', '4');
nestedDocument.write('<script>document.getElementById("twoHandlers").remove();</' + 'script>\n');
gc();
- shouldBe('window.internals.touchEventHandlerCount(nestedDocument)', '1');
+ shouldBe('window.internals.touchEventHandlerCount(nestedDocument)', '2');
shouldBe('window.internals.touchEventHandlerCount(document)', '2');
nestedDocument.close();

Powered by Google App Engine
This is Rietveld 408576698