Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / events / scroll-event-handler-count.html
index afaba7b..f17219a 100644 (file)
@@ -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() { }