blob: 2a055256ce0b6cd95bd44328b635a66a6faf55aa [file] [log] [blame]
This is a testharness.js-based test.
FAIL Test that nfc.cancelWatch fails if invalid watch ID is provided. assert_throws: function "function() { throw e }" threw object "NotSupportedError: NFC operation not supported." that is not a DOMException NotFoundError: property "code" is equal to 9, expected 8
FAIL Test that nfc.cancelWatch fails if there are no active watchers. assert_throws: function "function() { throw e }" threw object "NotSupportedError: WebNFC is not supported." that is not a DOMException NotFoundError: property "code" is equal to 9, expected 8
FAIL Test that nfc watch success if NFC HW is enable. promise_test: Unhandled rejection with value: object "NotSupportedError: WebNFC is not supported."
FAIL Test that nfc.cancelWatch succeeds if correct watch id is provided. promise_test: Unhandled rejection with value: object "NotSupportedError: WebNFC is not supported."
FAIL Test that nfc.cancelWatch succeeds if there are active watchers. promise_test: Unhandled rejection with value: object "NotSupportedError: WebNFC is not supported."
FAIL Test that nfc.watch fails if NFCWatchOptions.url is missing components. assert_throws: function "function() { throw e }" threw object "NotSupportedError: WebNFC is not supported." that is not a DOMException SyntaxError: property "code" is equal to 9, expected 12
FAIL Test that nfc.watch fails if NFCWatchOptions.url is invalid. assert_throws: function "function() { throw e }" threw object "NotSupportedError: WebNFC is not supported." that is not a DOMException SyntaxError: property "code" is equal to 9, expected 12
FAIL Test that nfc.watch fails if NFCWatchOptions.url has wrong protocol. assert_throws: function "function() { throw e }" threw object "NotSupportedError: WebNFC is not supported." that is not a DOMException SyntaxError: property "code" is equal to 9, expected 12
FAIL Test that nfc.watch succeeds if NFCWatchOptions.url is valid URL. promise_test: Unhandled rejection with value: object "NotSupportedError: WebNFC is not supported."
FAIL Test that nfc.watch succeeds if NFCWatchOptions.url is valid URL with "*" wildcard character in path. promise_test: Unhandled rejection with value: object "NotSupportedError: WebNFC is not supported."
FAIL Test that nfc.watch succeeds if NFCWatchOptions.url is valid URL with "*" wildcard character in the beginning of path component followed by subpath. promise_test: Unhandled rejection with value: object "NotSupportedError: WebNFC is not supported."
FAIL Test that nfc.watch succeeds if NFCWatchOptions.url is empty. promise_test: Unhandled rejection with value: object "NotSupportedError: WebNFC is not supported."
Harness: the test ran to completion.