Closed Bug 1684342 Opened 5 years ago Closed 5 years ago

[wpt-sync] Sync PR 27014 - NDEFReader.scan rejects if promise is resolved

Categories

(Core :: DOM: Device Interfaces, task, P4)

task

Tracking

()

RESOLVED FIXED
86 Branch
Tracking Status
firefox86 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 27014 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/27014
Details from upstream follow.

b'Fran\xc3\xa7ois Beaufort <beaufort.francois@gmail.com>' wrote:

NDEFReader.scan rejects if promise is resolved

As noted in https://github.com/w3c/web-nfc/pull/611#issuecomment-751644800, NDEFReader.scan test should be updated.

Component: web-platform-tests → DOM: Device Interfaces
Product: Testing → Core

CI Results

Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests and 17 subtests

Status Summary

Firefox

FAIL : 17
ERROR: 1

Chrome

OK : 1
PASS : 17

Safari

FAIL : 17
ERROR: 1

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/web-nfc/NDEFReader_scan.https.html: ERROR (Chrome: OK, Safari: ERROR)
Test that NDEFReader.scan rejects if signal is not an AbortSignal.: FAIL (Chrome: PASS, Safari: FAIL)
NDEFReader.scan should fail if user permission is not granted.: FAIL (Chrome: PASS, Safari: FAIL)
NDEFReader.scan should fail if no implementation for NFC Mojo interface.: FAIL (Chrome: PASS, Safari: FAIL)
NDEFReader.scan should fail if NFC HW is disabled.: FAIL (Chrome: PASS, Safari: FAIL)
NDEFReader.scan should fail if NFC HW is not supported.: FAIL (Chrome: PASS, Safari: FAIL)
Test that WebNFC API is not accessible from iframe context.: FAIL (Chrome: PASS, Safari: FAIL)
Test that nfc watch success if NFC HW is enabled.: FAIL (Chrome: PASS, Safari: FAIL)
Test that NDEFReader.scan rejects if NDEFScanOptions.signal is already aborted.: FAIL (Chrome: PASS, Safari: FAIL)
Test that NDEFReader.scan rejects if NDEFScanOptions.signal aborts right after the scan invocation.: FAIL (Chrome: PASS, Safari: FAIL)
Test that NDEFReader can not get any reading events once the signal aborts.: FAIL (Chrome: PASS, Safari: FAIL)
NDEFRecord.toRecords returns its embedded records correctly.: FAIL (Chrome: PASS, Safari: FAIL)
NDEFReader.scan returns smart-poster record correctly.: FAIL (Chrome: PASS, Safari: FAIL)
Test that NDEFReader.onreadingerror should be fired if the NFC tag does not expose NDEF technology.: FAIL (Chrome: PASS, Safari: FAIL)
Test that NDEFReader.onreading should be fired on an unformatted NFC tag with empty records array for NDEFMessage.: FAIL (Chrome: PASS, Safari: FAIL)
Test that reading message with multiple records should succeed.: FAIL (Chrome: PASS, Safari: FAIL)
Test that NDEFReader.scan rejects if there is already an ongoing scan.: FAIL (Chrome: PASS, Safari: FAIL)
Test that NDEFReader.scan can be started after the previous scan is aborted.: FAIL (Chrome: PASS, Safari: FAIL)

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9cd930475057 [wpt PR 27014] - NDEFReader.scan rejects if promise is resolved, a=testonly
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch
You need to log in before you can comment on or make changes to this bug.