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

Side by Side Diff: LayoutTests/fast/events/mouseover-mouseout2.html

Issue 1288483003: Skipping mouseenter/over/out/leave on deleted nodes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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
OLDNEW
1 <html> 1 <html>
2 <body onload="autoTest()"> 2 <body onload="autoTest()">
3 <script> 3 <script>
4 function log(message) 4 function log(message)
5 { 5 {
6 var item = document.createElement("li"); 6 var item = document.createElement("li");
7 item.appendChild(document.createTextNode(message)); 7 item.appendChild(document.createTextNode(message));
8 document.getElementById('log').appendChild(item); 8 document.getElementById('log').appendChild(item);
9 } 9 }
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 onMouseOut="logMouseEvent(event); document.getElementById('t5_2').style.back groundColor = 'gray'">5</div> 62 onMouseOut="logMouseEvent(event); document.getElementById('t5_2').style.back groundColor = 'gray'">5</div>
63 <iframe style='height: 50; width: 50; top:100;left:300; position:absolute; borde r-width:0' src='resources/mouseover-mouseout2-iframe-5.html' 63 <iframe style='height: 50; width: 50; top:100;left:300; position:absolute; borde r-width:0' src='resources/mouseover-mouseout2-iframe-5.html'
64 onMouseOver="logMouseEvent(event)" 64 onMouseOver="logMouseEvent(event)"
65 onMouseOut="logMouseEvent(event)" 65 onMouseOut="logMouseEvent(event)"
66 id="frame5" 66 id="frame5"
67 ></iframe> 67 ></iframe>
68 68
69 <!-- 6: Nothing but a rainbow end --> 69 <!-- 6: Nothing but a rainbow end -->
70 <div style='height: 50; width: 50; background:violet;top:100;left:350; position: absolute;' id='t6' 70 <div style='height: 50; width: 50; background:violet;top:100;left:350; position: absolute;' id='t6'
71 onMouseOver="logMouseEvent(event); document.getElementById('t6').style.backg roundColor = 'white'" 71 onMouseOver="logMouseEvent(event); document.getElementById('t6').style.backg roundColor = 'white'"
72 onMouseOut=" 72 onMouseOut="logMouseEvent(event)">6</div>
73 logMouseEvent(event);
74 document.getElementById('t6').style.backgroundColor = 'gray';
75 if (top.document.getElementById('log').innerHTML == top.document.getElem entById('exp').innerHTML) {
76 top.document.getElementById('success').style.display = 'block';
77 }
78 ">6</div>
79 73
80 <table border=1 width="100%" style='top:200; position:absolute'> 74 <table border=1 width="100%" style='top:200; position:absolute'>
81 <tr><td width="50%">Log</td><td>Expected results</td></tr> 75 <tr><td width="50%">Log</td></tr>
82 <tr> 76 <tr>
83 <td id=log style="vertical-align:top"></td> 77 <td id=log style="vertical-align:top"></td>
84 <td id=exp style="vertical-align:top"><LI>mouseover on frame1</LI><LI>mouseo ver on t1</LI><LI>mouseout on t1</LI><LI>mouseout on frame1</LI><LI>mouseover on frame2</LI><LI>mouseover on t2</LI><LI>mouseout on t2</LI><LI>mouseout on frame 2</LI><LI>mouseover on frame3</LI><LI>mouseover on t3_1</LI><LI>mouseout on t3_1 </LI><LI>mouseout on frame3</LI><LI>mouseover on t3_2</LI><LI>mouseout on t3_2</ LI><LI>mouseover on t4_2</LI><LI>mouseout on t4_2</LI><LI>mouseover on frame4</L I><LI>mouseover on t4_1</LI><LI>mouseout on t4_1</LI><LI>mouseout on frame4</LI> <LI>mouseover on frame5</LI><LI>mouseover on t5_1</LI><LI>mouseout on frame5</LI ><LI>mouseover on t5_2</LI><LI>mouseout on t5_2</LI><LI>mouseover on t6</LI><LI> mouseout on t6</LI></td>
85 </tr> 78 </tr>
86 </table> 79 </table>
87 80
88 <div style='height: 50; width: 300; top:100;left:100; position:absolute; display :none' id='success'><br><center>SUCCESS</center></div>
89
90 <script> 81 <script>
91 function autoTest() { 82 function autoTest() {
92 if (window.testRunner) { 83 if (window.testRunner) {
93 testRunner.dumpAsText(); 84 testRunner.dumpAsText();
94 testRunner.waitUntilDone(); 85 testRunner.waitUntilDone();
95 86
96 eventSender.mouseMoveTo(1,1); 87 eventSender.mouseMoveTo(1,1);
97 eventSender.mouseDown(); 88 eventSender.mouseDown();
98 eventSender.mouseUp(); 89 eventSender.mouseUp();
99 90
(...skipping 18 matching lines...) Expand all
118 eventSender.mouseMoveTo(385, 125); 109 eventSender.mouseMoveTo(385, 125);
119 110
120 eventSender.mouseMoveTo(1, 1); 111 eventSender.mouseMoveTo(1, 1);
121 testRunner.notifyDone() 112 testRunner.notifyDone()
122 } 113 }
123 } 114 }
124 </script> 115 </script>
125 116
126 </body> 117 </body>
127 </html> 118 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/events/mouseover-mouseout-expected.txt ('k') | LayoutTests/fast/events/mouseover-mouseout2-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698