tor-browser

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

idlharness.any.js (556B)


      1 // META: script=/resources/WebIDLParser.js
      2 // META: script=/resources/idlharness.js
      3 // META: timeout=long
      4 
      5 'use strict';
      6 
      7 // https://w3c.github.io/resource-timing/
      8 
      9 idl_test(
     10  ['resource-timing'],
     11  ['performance-timeline', 'hr-time', 'dom', 'html'],
     12  idl_array => {
     13    try {
     14      self.resource = performance.getEntriesByType('resource')[0];
     15    } catch (e) {
     16      // Will be surfaced when resource is undefined below.
     17    }
     18 
     19    idl_array.add_objects({
     20      Performance: ['performance'],
     21      PerformanceResourceTiming: ['resource']
     22    });
     23  }
     24 );