tor-browser

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

stylesheet-initiated.html (871B)


      1 <!DOCTYPE html>
      2 <head>
      3  <script src="/resources/testharness.js"></script>
      4  <script src="/resources/testharnessreport.js"></script>
      5 
      6  <!-- Helper Functions for getting ResourceID -->
      7  <script src="../resources/get-resourceID.js"></script>
      8  <!-- Responsible for testing Initiator Attribute -->
      9  <script src="../resources/test-initiator.js"></script>
     10 
     11  <!-- Stylesheet responsible for fetching other Resources.-->
     12  <link rel="stylesheet" href="../resources/nested.css" />
     13 </head>
     14 <body></body>
     15 <script>
     16  promise_test(async (t) => {
     17    const expectedInitiator = await getResourceID("nested.css");
     18    const resources = ["resource_timing_test0.css", "Ahem.ttf", "blue.png"];
     19    for (const resource of resources) {
     20      await testResourceInitiator(resource, expectedInitiator);
     21    }
     22  }, "Ensure initiator Attribute matches with Stylesheet ResourceID");
     23 </script>