navigation-in-onload.html (824B)
1 <!doctype html> 2 <meta charset=utf-8> 3 <title>Navigation in onload handler</title> 4 <script src=/resources/testharness.js></script> 5 <script src=/resources/testharnessreport.js></script> 6 <script> 7 var testFiles = [ 8 "navigation-in-onload_form-submission-1.html", 9 "navigation-in-onload_form-submission-iframe.html", 10 "navigation-in-onload_form-submission-dynamic-iframe.html" 11 ] 12 13 var t = async_test(); 14 15 function scheduleNextTest() { 16 setTimeout(runNextTest, 0); 17 } 18 19 function runNextTest() { 20 var file = testFiles.shift(); 21 if (!file) { 22 t.done(); 23 return; 24 } 25 26 window.open(file); 27 } 28 29 function verify(actual, expected, desc) { 30 setTimeout(t.step_func(function() { 31 assert_equals(actual, expected, desc); 32 }), 0); 33 } 34 35 </script> 36 <body onload="scheduleNextTest();"></body>