mirror of
https://github.com/servo/servo.git
synced 2025-08-24 22:58:21 +01:00
Update web-platform-tests to revision 5d33b4da92080b7658168bdb0fbdc3531bda1ddf
This commit is contained in:
parent
7010178691
commit
5b46b73c1b
139 changed files with 2001 additions and 261 deletions
|
@ -398,15 +398,12 @@ var WebNFCTest = (() => {
|
|||
Object.freeze(this); // Makes it immutable.
|
||||
}
|
||||
|
||||
initialize() {
|
||||
async initialize() {
|
||||
if (testInternal.initialized)
|
||||
throw new Error('Call reset() before initialize().');
|
||||
|
||||
if (window.testRunner) {
|
||||
// Grant nfc permissions for Chromium testrunner.
|
||||
window.testRunner.setPermission('nfc', 'granted',
|
||||
location.origin, location.origin);
|
||||
}
|
||||
// Grant nfc permissions for Chromium testdriver.
|
||||
await test_driver.set_permission({ name: 'nfc' }, 'granted', false);
|
||||
|
||||
if (testInternal.mockNFC == null) {
|
||||
testInternal.mockNFC = new MockNFC();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue