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

Side by Side Diff: LayoutTests/fast/events/move-event-handler-between-framehosts.html

Issue 225903009: Migrate touch events to EventHandlerRegistry (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed HTMLInputElement adding handler at document destruction and removed dead oilpan code. Created 6 years, 5 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 <html>
2 <body onload="startTest()">
3
4 <script src="../../resources/js-test.js"></script>
5 <script>
6
7 description("This test checks that moving an element with an event handler from one window (FrameHost) to another properly migrates the handler too.");
8
9 var jsTestIsAsync = true;
10 var window2;
11
12 function window2Loaded() {
13 shouldBe('window.internals.scrollEventHandlerCount(document)', '0');
14 var div = window2.document.getElementById("div");
15 window.document.adoptNode(div);
16 window.document.body.appendChild(div);
17 shouldBe('window.internals.scrollEventHandlerCount(document)', '1');
18
19 window2.close();
20 finishJSTest();
21 }
22
23 function startTest() {
24 if (window.testRunner) {
25 testRunner.waitUntilDone();
26 testRunner.setCanOpenWindows();
27 }
28 window2 = window.open('data:text/html,<div id="div" onscroll="function() {}" ></div>');
29 window2.addEventListener("load", window2Loaded, false);
30 }
31
32 </script>
33
34 </body>
35 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698