test_performance_timeline.html (764B)
1 <!-- 2 Any copyright is dedicated to the Public Domain. 3 http://creativecommons.org/publicdomain/zero/1.0/ 4 --> 5 6 <!DOCTYPE HTML> 7 <html> 8 <head> 9 <script src="/tests/SimpleTest/SimpleTest.js"></script> 10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 11 </head> 12 <body> 13 14 <pre id="test"> 15 <script type="application/javascript"> 16 17 SimpleTest.waitForExplicitFinish(); 18 19 // Resource timing is prefed off by default, so we had to use this workaround 20 SpecialPowers.pushPrefEnv({"set": [["dom.enable_resource_timing", true]]}, start); 21 var subwindow = null; 22 23 function start() { 24 subwindow = window.open("performance_timeline_main_test.html"); 25 } 26 27 function finishTests() { 28 subwindow.close(); 29 SimpleTest.finish(); 30 } 31 </script> 32 </pre> 33 34 </body> 35 </html>