Bug 1558411 [wpt PR 17263] - [webnfc] Introduce IDLs for NFCErrorEvent and NFCErrorEventInit., a=testonly

Automatic update from web-platform-tests
[webnfc] Introduce IDLs for NFCErrorEvent and NFCErrorEventInit.

This CL introduces IDLs for NFCErrorEvent and NFCErrorEventInit
interfaces, and updates the baseline of relevant wpt tests.
http://w3c.github.io/web-nfc/#dom-nfcerrorevent

The corresponding spec changes were introduced in
https://github.com/w3c/web-nfc/pull/184

BUG=520391

Change-Id: Ia8af8b49f53be7161b7e7b0f4e45f617c4991473
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1652968
Commit-Queue: Leon Han <leon.han@intel.com>
Reviewed-by: Leon Han <leon.han@intel.com>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Reviewed-by: Rijubrata Bhaumik <rijubrata.bhaumik@intel.com>
Reviewed-by: Kentaro Hara <haraken@chromium.org>
Cr-Commit-Position: refs/heads/master@{#669482}

--

wpt-commits: 4100d1d51b885185c50902397f7d203d89efc24c
wpt-pr: 17263
This commit is contained in:
Leon Han 2019-07-19 12:22:53 +00:00 коммит произвёл James Graham
Родитель 3a4cc91be3
Коммит 75a0fe028e
2 изменённых файлов: 10 добавлений и 1 удалений

Просмотреть файл

@ -8,4 +8,13 @@
assert_equals(NFCErrorEvent.length, 2);
assert_throws(new TypeError, () => new NFCErrorEvent('error'));
}, 'NFCErrorEvent constructor without init dict');
test(() => {
assert_throws(new TypeError, () => new NFCErrorEvent('error', { error : null }));
}, 'NFCErrorEvent constructor with a null that is not of type DOMException');
test(() => {
const event = new NFCErrorEvent('error', { error : new DOMException() });
assert_true(event.error instanceof DOMException);
}, 'NFCErrorEvent constructor with a valid DOMException');
</script>

Просмотреть файл

@ -14,7 +14,7 @@ const message = {
idl_test(
['web-nfc'],
['html', 'dom'],
['html', 'dom', 'WebIDL'],
idl_array => {
idl_array.add_objects({
NFCWriter: ['new NFCWriter();'],