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

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

Issue 11638044: Revert 138207 (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/events/touch/touch-handler-count-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/events/touch/touch-handler-count.html
===================================================================
--- LayoutTests/fast/events/touch/touch-handler-count.html (revision 138268)
+++ LayoutTests/fast/events/touch/touch-handler-count.html (working copy)
@@ -204,5 +204,24 @@
shouldBe('window.internals.touchEventHandlerCount(document)', '0');
})();
+debug("Test that nested Documents' touch handlers are properly removed from their parent Document.");
+(function() {
+ var iframe = document.createElement('iframe');
+ var touchtarget = document.getElementById('touchtarget');
+
+ shouldBe('window.internals.touchEventHandlerCount(document)', '0');
+
+ touchtarget.appendChild(iframe);
+
+ var nestedDocument = iframe.contentWindow.document;
+ nestedDocument.open('text/html', 'replace');
+ nestedDocument.write("<!DOCTYPE html>\n<html><body onload=\"window.ontouchstart = function() { };\"></body>");
+ nestedDocument.close();
+
+ shouldBe('window.internals.touchEventHandlerCount(document)', '1');
+
+ touchtarget.removeChild(iframe);
+ shouldBe('window.internals.touchEventHandlerCount(document)', '0');
+})();
</script>
</body>
« no previous file with comments | « no previous file | LayoutTests/fast/events/touch/touch-handler-count-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698