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

Side by Side Diff: LayoutTests/fast/events/scroll-event-handler-reused-window.html

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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
Rick Byers 2014/05/06 20:54:39 missing expected output for this test
Sami 2014/05/07 10:36:41 Oops, added.
2 <script src="../../resources/js-test.js"></script>
3 <script>
4 description('Test tracking event handlers with a reused DOMWindow.');
Rick Byers 2014/05/06 20:54:39 can you elaborate on what you mean by "reused DOMW
Sami 2014/05/07 10:36:41 Sure, I've added a comment here: // |window.open|
Rick Byers 2014/05/07 13:28:21 Fascinating, thanks!
5
6 if (window.testRunner) {
7 testRunner.setCanOpenWindows();
8 testRunner.waitUntilDone();
9 }
10
11 var newWindow = window.open('resources/conclude-test-in-parent.html');
12 newWindow.onscroll = function() {};
13
14 function concludeTest() {
15 shouldBe('window.internals.scrollEventHandlerCount(newWindow.document)', '1' );
16 testRunner.notifyDone();
17 }
18 </script>
19 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698