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

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

Issue 240343002: Track event handlers on windows (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed assertions not to go through the document. Created 6 years, 7 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 fd30d402c29e5bc2561b815ecb02ec7ae44af793..4bcd6ff34e052d3839d18973cf78c9adc9ee9e1c 100644
--- a/LayoutTests/fast/events/scroll-event-handler-count-expected.txt
+++ b/LayoutTests/fast/events/scroll-event-handler-count-expected.txt
@@ -9,6 +9,7 @@ PASS window.internals.scrollEventHandlerCount(document) is 2
PASS window.internals.scrollEventHandlerCount(document) is 1
PASS window.internals.scrollEventHandlerCount(document) is 1
PASS window.internals.scrollEventHandlerCount(document) is 0
+Test setting onscroll on the document.
PASS window.internals.scrollEventHandlerCount(document) is 0
PASS window.internals.scrollEventHandlerCount(document) is 1
PASS window.internals.scrollEventHandlerCount(document) is 1
@@ -21,8 +22,8 @@ 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(nestedDocument) is 2
+PASS window.internals.scrollEventHandlerCount(document) is 2
PASS window.internals.scrollEventHandlerCount(document) is 0
Test moving event listeners from an unattached document to an attached one
PASS window.internals.scrollEventHandlerCount(doc) is 0
@@ -31,9 +32,21 @@ PASS window.internals.scrollEventHandlerCount(document) is 2
PASS window.internals.scrollEventHandlerCount(document) is 2
PASS window.internals.scrollEventHandlerCount(document) is 0
Test moving event listeners from an attached document to an unattached one
-PASS window.internals.scrollEventHandlerCount(document) is 2
+PASS window.internals.scrollEventHandlerCount(document) is 3
PASS window.internals.scrollEventHandlerCount(document) is 0
Test moving a scroll event listener between documents belonging to the same page
+PASS window.internals.scrollEventHandlerCount(document) is 2
+PASS window.internals.scrollEventHandlerCount(document) is 2
+PASS window.internals.scrollEventHandlerCount(document) is 0
+Test addEventListener/removeEventListener on the window.
+PASS window.internals.scrollEventHandlerCount(document) is 0
+PASS window.internals.scrollEventHandlerCount(document) is 1
+PASS window.internals.scrollEventHandlerCount(document) is 2
+PASS window.internals.scrollEventHandlerCount(document) is 1
+PASS window.internals.scrollEventHandlerCount(document) is 1
+PASS window.internals.scrollEventHandlerCount(document) is 0
+Test setting onscroll on the window.
+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

Powered by Google App Engine
This is Rietveld 408576698