summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/idle-detection/resources/idle-detection-helper.js
blob: f053e635e0bd568ca67fa406278eddd2d9cf3898 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
'use strict';

// These tests rely on the User Agent providing an implementation of
// platform nfc backends.
//
// In Chromium-based browsers this implementation is provided by a polyfill
// in order to reduce the amount of test-only code shipped to users. To enable
// these tests the browser must be run with these options:
//
//   --enable-blink-features=MojoJS,MojoJSTest

async function loadChromiumResources() {
  await import('/resources/chromium/mock-idle-detection.js');
}