Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / onunload-not-on-body.html
blobe67bb3d46dd46e419426e7c0f889d76a32711283
1 <html>
2 <head>
3 <script>
4 if (window.testRunner) {
5 testRunner.dumpAsText();
6 testRunner.waitUntilDone();
9 function load()
11 location = "data:text/html,you should only see one unload alert appear.<script>if (window.testRunner) testRunner.notifyDone(); </" + "script>";
14 function unload()
16 alert("unload");
18 </script>
19 </head>
20 <frameset onload="load()">
21 <frame src="data:text/html,<p>loaded frame 0</p>" onunload="unload()" ></frame>
22 <frame src="data:text/html,<script>function unload(){ alert('unload'); }</script><body><p>loaded frame 1</p><object data='resources/greenbox.png' onunload='unload()'></object></body>" ></frame>
23 <frame src="data:text/html,<script>function unload(){ alert('unload'); }</script><body onunload='unload()'><p>loaded frame 2</p></body>" ></frame>
24 </frameset>
25 </html>