dom/tests/mochitest/general/test_resource_timing.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/tests/mochitest/general/test_resource_timing.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,35 @@
     1.4 +<!--
     1.5 +  Any copyright is dedicated to the Public Domain.
     1.6 +  http://creativecommons.org/publicdomain/zero/1.0/
     1.7 +-->
     1.8 +
     1.9 +<!DOCTYPE HTML>
    1.10 +<html>
    1.11 +<!--
    1.12 +https://bugzilla.mozilla.org/show_bug.cgi?id=822480
    1.13 +-->
    1.14 +<head>
    1.15 +  <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
    1.16 +  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
    1.17 +</head>
    1.18 +<body>
    1.19 +
    1.20 +<pre id="test">
    1.21 +<script type="application/javascript">
    1.22 +
    1.23 +SimpleTest.waitForExplicitFinish();
    1.24 +
    1.25 +// Resource timing is prefed off by default, so we had to use this workaround
    1.26 +SpecialPowers.setBoolPref("dom.enable_resource_timing", true);
    1.27 +var subwindow = window.open("resource_timing_main_test.html");
    1.28 +
    1.29 +function finishTests() {
    1.30 +  subwindow.close();
    1.31 +  SpecialPowers.setBoolPref("dom.enable_resource_timing", false);
    1.32 +  SimpleTest.finish();
    1.33 +}
    1.34 +</script>
    1.35 +</pre>
    1.36 +
    1.37 +</body>
    1.38 +</html>

mercurial