tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

entry-attributes.html (1349B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8" />
      5 <title>Resource Timing: PerformanceResourceTiming attributes</title>
      6 <link rel="author" title="Google" href="http://www.google.com/" />
      7 <link rel="help"
      8  href="https://www.w3.org/TR/resource-timing-2/#timing-allow-origin"/>
      9 <script src="/resources/testharness.js"></script>
     10 <script src="/resources/testharnessreport.js"></script>
     11 <script src="resources/resource-loaders.js"></script>
     12 <script src="resources/entry-invariants.js"></script>
     13 <script>
     14 attribute_test(
     15  load.image, "resources/fake_responses.py#hash=1",
     16  entry => {
     17    assert_true(entry.name.includes('#hash=1'),
     18      "There should be a hash in the resource name");
     19    invariants.assert_tao_pass_no_redirect_http(entry);
     20  },
     21  "Image resources should generate conformant entries");
     22 
     23 attribute_test(
     24  load.font, "/fonts/Ahem.ttf",
     25  invariants.assert_tao_pass_no_redirect_http,
     26  "Font resources should generate conformant entries");
     27 
     28 attribute_test(
     29  load.image, "/common/redirect.py?location=resources/fake_responses.py",
     30  invariants.assert_same_origin_redirected_resource,
     31  "Same-origin redirects should populate redirectStart/redirectEnd");
     32 </script>
     33 </head>
     34 <body>
     35 <h1>Description</h1>
     36 <p>This test validates that PerformanceResourceTiming entries' attributes are
     37 populated with the correct values.</p>
     38 </body>
     39 </html>