OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script> | 3 <script> |
4 if (window.testRunner) { | 4 if (window.testRunner) { |
5 testRunner.dumpAsText(); | 5 testRunner.dumpAsText(); |
6 testRunner.waitUntilDone(); | 6 testRunner.waitUntilDone(); |
7 } | 7 } |
8 | 8 |
9 function load() | 9 function load() |
10 { | 10 { |
11 location = "data:text/html,you should only see one unload alert appear.<scri
pt>if (window.testRunner) testRunner.notifyDone(); </" + "script>"; | 11 location = "resources/onunload-single-alert-success.html"; |
12 } | 12 } |
13 | 13 |
14 function unload() | 14 function unload() |
15 { | 15 { |
16 alert("unload"); | 16 alert("unload"); |
17 } | 17 } |
18 </script> | 18 </script> |
19 </head> | 19 </head> |
20 <frameset onload="load()"> | 20 <frameset onload="load()"> |
21 <frame src="data:text/html,<p>loaded frame 0</p>" onunload="unload()" ></fr
ame> | 21 <frame src="data:text/html,<p>loaded frame 0</p>" onunload="unload()" ></fr
ame> |
22 <frame src="data:text/html,<script>function unload(){ alert('unload'); }</s
cript><body><p>loaded frame 1</p><object data='resources/greenbox.png' onunload=
'unload()'></object></body>" ></frame> | 22 <frame src="data:text/html,<script>function unload(){ alert('unload'); }</s
cript><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'); }</s
cript><body onunload='unload()'><p>loaded frame 2</p></body>" ></frame> | 23 <frame src="data:text/html,<script>function unload(){ alert('unload'); }</s
cript><body onunload='unload()'><p>loaded frame 2</p></body>" ></frame> |
24 </frameset> | 24 </frameset> |
25 </html> | 25 </html> |
OLD | NEW |