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

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

Issue 561813003: Prepare blink to unify definitions of load completion (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add document.close() to scroll-left-while-loading.html Created 6 years, 2 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.html
diff --git a/LayoutTests/fast/events/scroll-event-handler-count.html b/LayoutTests/fast/events/scroll-event-handler-count.html
index afaba7bad5a90f647255ee9540d79cbdfbd862c0..f17219a6112ed2ef0452b7380234702e96a8a92f 100644
--- a/LayoutTests/fast/events/scroll-event-handler-count.html
+++ b/LayoutTests/fast/events/scroll-event-handler-count.html
@@ -123,6 +123,7 @@ debug('Test moving event listeners from an attached document to an unattached on
nestedDocument.open('text/html', 'replace');
nestedDocument.write('<!DOCTYPE html>\n<script>\ndocument.onscroll=function(){};\n' +
'window.onscroll=function(){};</' + 'script>\n');
+ nestedDocument.close();
shouldBe('window.internals.scrollEventHandlerCount(document)', '3');
@@ -138,6 +139,7 @@ debug('Test moving a scroll event listener between documents belonging to the sa
var nestedDocument = iframe.contentWindow.document;
nestedDocument.open('text/html', 'replace');
nestedDocument.write('<!DOCTYPE html><div id=foo></div>');
+ nestedDocument.close();
var element = frames[0].document.getElementById('foo');
var listener = function() { }

Powered by Google App Engine
This is Rietveld 408576698