Update web-platform-tests to revision 5d33b4da92080b7658168bdb0fbdc3531bda1ddf

This commit is contained in:
WPT Sync Bot 2020-03-10 08:19:03 +00:00
parent 7010178691
commit 5b46b73c1b
139 changed files with 2001 additions and 261 deletions

View file

@ -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();