001.html (411B)
1 <!doctype html> 2 <title>beforeunload event order</title> 3 <script src="/resources/testharness.js"></script> 4 <script src="/resources/testharnessreport.js"></script> 5 <div id="log"></div> 6 <script> 7 var t = async_test(); 8 events = []; 9 onload = t.step_func(function() { 10 assert_array_equals(events, ["before src change", "beforeunload", "after src change"]); 11 t.done(); 12 }) 13 </script> 14 <iframe src="001-1.html"></iframe>