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

Unified Diff: LayoutTests/fast/events/scroll-event-handler-count-expected.txt

Issue 237963014: Track scroll event handlers in nested documents (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: didMove{Into,OutOf}Page Created 6 years, 8 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/scroll-event-handler-count-expected.txt
diff --git a/LayoutTests/fast/events/scroll-event-handler-count-expected.txt b/LayoutTests/fast/events/scroll-event-handler-count-expected.txt
index aac2b5ed44fce92957d0617bcd08c57681447771..6b6ad5e36a19a9009e41404478c63bae2576dca0 100644
--- a/LayoutTests/fast/events/scroll-event-handler-count-expected.txt
+++ b/LayoutTests/fast/events/scroll-event-handler-count-expected.txt
@@ -13,6 +13,21 @@ PASS window.internals.scrollEventHandlerCount(document) is 0
PASS window.internals.scrollEventHandlerCount(document) is 1
PASS window.internals.scrollEventHandlerCount(document) is 1
PASS window.internals.scrollEventHandlerCount(document) is 0
+Test that nested Documents' scroll handlers are properly tracked in their parent Document.
+PASS window.internals.scrollEventHandlerCount(document) is 1
+PASS window.internals.scrollEventHandlerCount(nestedDocument) is 2
+PASS window.internals.scrollEventHandlerCount(document) is 2
+PASS window.internals.scrollEventHandlerCount(nestedDocument) is 1
+PASS window.internals.scrollEventHandlerCount(document) is 1
+PASS window.internals.scrollEventHandlerCount(document) is 1
+Test that detaching a nested Document with handlers works properly.
+PASS window.internals.scrollEventHandlerCount(nestedDocument) is 1
+PASS window.internals.scrollEventHandlerCount(document) is 1
+PASS window.internals.scrollEventHandlerCount(document) is 0
+Moving a scroll event listener between documents should keep it active
+PASS window.internals.scrollEventHandlerCount(document) is 1
+PASS window.internals.scrollEventHandlerCount(document) is 1
+PASS window.internals.scrollEventHandlerCount(document) is 0
PASS successfullyParsed is true
TEST COMPLETE

Powered by Google App Engine
This is Rietveld 408576698