summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/meta/web-nfc
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:47:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:47:29 +0000
commit0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d (patch)
treea31f07c9bcca9d56ce61e9a1ffd30ef350d513aa /testing/web-platform/meta/web-nfc
parentInitial commit. (diff)
downloadfirefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.tar.xz
firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.zip
Adding upstream version 115.8.0esr.upstream/115.8.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/meta/web-nfc')
-rw-r--r--testing/web-platform/meta/web-nfc/NDEFReader_scan.https.html.ini61
-rw-r--r--testing/web-platform/meta/web-nfc/NDEFReader_scan_iframe.https.html.ini4
-rw-r--r--testing/web-platform/meta/web-nfc/__dir__.ini2
-rw-r--r--testing/web-platform/meta/web-nfc/idlharness.https.window.js.ini301
4 files changed, 368 insertions, 0 deletions
diff --git a/testing/web-platform/meta/web-nfc/NDEFReader_scan.https.html.ini b/testing/web-platform/meta/web-nfc/NDEFReader_scan.https.html.ini
new file mode 100644
index 0000000000..ec9d61dabc
--- /dev/null
+++ b/testing/web-platform/meta/web-nfc/NDEFReader_scan.https.html.ini
@@ -0,0 +1,61 @@
+[NDEFReader_scan.https.html]
+ [Test that nfc watch success if NFC HW is enabled.]
+ expected: FAIL
+
+ [NDEFReader.scan should fail if NFC HW is disabled.]
+ expected: FAIL
+
+ [NDEFReader.scan should fail if NFC HW is not supported.]
+ expected: FAIL
+
+ [Test that NDEFReader.onreading should be fired on an unformatted NFC tag with empty records array for NDEFMessage.]
+ expected: FAIL
+
+ [NDEFReader.scan should fail if user permission is not granted.]
+ expected: FAIL
+
+ [Test that NDEFReader can not get any reading events once the signal aborts.]
+ expected: FAIL
+
+ [Test that NDEFReader.scan rejects if NDEFScanOptions.signal aborts right after the scan invocation.]
+ expected: FAIL
+
+ [NDEFRecord.toRecords returns its embedded records correctly.]
+ expected: FAIL
+
+ [Test that NDEFReader.scan rejects if NDEFScanOptions.signal is already aborted.]
+ expected: FAIL
+
+ [Test that NDEFReader.scan rejects if signal is not an AbortSignal.]
+ expected: FAIL
+
+ [Test that NDEFReader.scan matches any ids if NDEFScanOptions.id is undefined.]
+ expected: FAIL
+
+ [Test that an error event happens if no implementation for NFC Mojo interface is available.]
+ expected: FAIL
+
+ [Test that NDEFReader.scan rejects if signal is not an AbortSignal.]
+ expected: FAIL
+
+ [NDEFRecord.toRecords returns its embedded records correctly.]
+ expected: FAIL
+
+ [Test that NDEFReader can not get any reading events once the signal aborts.]
+ expected: FAIL
+
+ [Test that NDEFReader.scan rejects if NDEFScanOptions.signal aborts right after the scan invocation.]
+ expected: FAIL
+
+ [Test that NDEFReader.scan rejects if NDEFScanOptions.signal is already aborted.]
+ expected: FAIL
+
+ [Test that NDEFReader.onerror should be fired if the NFC tag does not expose NDEF technology.]
+ expected: FAIL
+
+ [Test that reading message with multiple records should succeed.]
+ expected: FAIL
+
+ [NDEFReader.scan returns smart-poster record correctly.]
+ expected: FAIL
+
diff --git a/testing/web-platform/meta/web-nfc/NDEFReader_scan_iframe.https.html.ini b/testing/web-platform/meta/web-nfc/NDEFReader_scan_iframe.https.html.ini
new file mode 100644
index 0000000000..6182197750
--- /dev/null
+++ b/testing/web-platform/meta/web-nfc/NDEFReader_scan_iframe.https.html.ini
@@ -0,0 +1,4 @@
+[NDEFReader_scan_iframe.https.html]
+ [Test that NDEFWriter.scan is not suspended if iframe gains focus.]
+ expected: FAIL
+
diff --git a/testing/web-platform/meta/web-nfc/__dir__.ini b/testing/web-platform/meta/web-nfc/__dir__.ini
new file mode 100644
index 0000000000..becd54ba09
--- /dev/null
+++ b/testing/web-platform/meta/web-nfc/__dir__.ini
@@ -0,0 +1,2 @@
+implementation-status: not-implementing
+leak-threshold: [default:51200]
diff --git a/testing/web-platform/meta/web-nfc/idlharness.https.window.js.ini b/testing/web-platform/meta/web-nfc/idlharness.https.window.js.ini
new file mode 100644
index 0000000000..0a9fa767a5
--- /dev/null
+++ b/testing/web-platform/meta/web-nfc/idlharness.https.window.js.ini
@@ -0,0 +1,301 @@
+[idlharness.https.window.html]
+ [NDEFMessage interface: existence and properties of interface prototype object's @@unscopables property]
+ expected: FAIL
+
+ [NDEFMessage interface: existence and properties of interface object]
+ expected: FAIL
+
+ [NDEFRecord interface: attribute recordType]
+ expected: FAIL
+
+ [NDEFMessage interface: existence and properties of interface prototype object]
+ expected: FAIL
+
+ [NDEFRecord interface: existence and properties of interface object]
+ expected: FAIL
+
+ [NDEFMessage interface object length]
+ expected: FAIL
+
+ [NDEFMessage interface object name]
+ expected: FAIL
+
+ [NDEFMessage interface: attribute records]
+ expected: FAIL
+
+ [NDEFRecord interface: existence and properties of interface prototype object's "constructor" property]
+ expected: FAIL
+
+ [NDEFRecord interface object name]
+ expected: FAIL
+
+ [NDEFRecord interface: existence and properties of interface prototype object]
+ expected: FAIL
+
+ [NDEFRecord interface: attribute mediaType]
+ expected: FAIL
+
+ [NDEFRecord interface: existence and properties of interface prototype object's @@unscopables property]
+ expected: FAIL
+
+ [NDEFRecord interface object length]
+ expected: FAIL
+
+ [NDEFMessage interface: existence and properties of interface prototype object's "constructor" property]
+ expected: FAIL
+
+ [NDEFRecord interface: existence and properties of interface object]
+ expected: FAIL
+
+ [NDEFMessage interface object length]
+ expected: FAIL
+
+ [NDEFRecord interface: existence and properties of interface prototype object's @@unscopables property]
+ expected: FAIL
+
+ [NDEFMessage interface: existence and properties of interface prototype object's "constructor" property]
+ expected: FAIL
+
+ [NDEFMessage interface: existence and properties of interface prototype object's @@unscopables property]
+ expected: FAIL
+
+ [NDEFRecord interface: attribute recordType]
+ expected: FAIL
+
+ [NDEFMessage interface object name]
+ expected: FAIL
+
+ [NDEFMessage interface: existence and properties of interface prototype object]
+ expected: FAIL
+
+ [NDEFRecord interface object length]
+ expected: FAIL
+
+ [NDEFMessage interface: attribute records]
+ expected: FAIL
+
+ [NDEFRecord interface: attribute mediaType]
+ expected: FAIL
+
+ [NDEFRecord interface: existence and properties of interface prototype object]
+ expected: FAIL
+
+ [NDEFMessage interface: existence and properties of interface object]
+ expected: FAIL
+
+ [NDEFRecord interface object name]
+ expected: FAIL
+
+ [NDEFRecord interface: existence and properties of interface prototype object's "constructor" property]
+ expected: FAIL
+
+ [NDEFRecord interface: existence and properties of interface object]
+ expected: FAIL
+
+ [NDEFMessage interface object length]
+ expected: FAIL
+
+ [NDEFRecord interface: existence and properties of interface prototype object's @@unscopables property]
+ expected: FAIL
+
+ [NDEFMessage interface: existence and properties of interface prototype object's "constructor" property]
+ expected: FAIL
+
+ [NDEFMessage interface: existence and properties of interface prototype object's @@unscopables property]
+ expected: FAIL
+
+ [NDEFRecord interface: attribute recordType]
+ expected: FAIL
+
+ [NDEFMessage interface object name]
+ expected: FAIL
+
+ [NDEFMessage interface: existence and properties of interface prototype object]
+ expected: FAIL
+
+ [NDEFRecord interface object length]
+ expected: FAIL
+
+ [NDEFMessage interface: attribute records]
+ expected: FAIL
+
+ [NDEFRecord interface: attribute mediaType]
+ expected: FAIL
+
+ [NDEFRecord interface: existence and properties of interface prototype object]
+ expected: FAIL
+
+ [NDEFMessage interface: existence and properties of interface object]
+ expected: FAIL
+
+ [NDEFRecord interface object name]
+ expected: FAIL
+
+ [NDEFRecord interface: existence and properties of interface prototype object's "constructor" property]
+ expected: FAIL
+
+ [NDEFRecord interface: attribute id]
+ expected: FAIL
+
+ [NDEFRecord interface: operation toRecords()]
+ expected: FAIL
+
+ [NDEFReader must be primary interface of new NDEFReader();]
+ expected: FAIL
+
+ [NDEFReader interface object length]
+ expected: FAIL
+
+ [NDEFWriter must be primary interface of new NDEFWriter();]
+ expected: FAIL
+
+ [NDEFReadingEvent interface: existence and properties of interface prototype object's @@unscopables property]
+ expected: FAIL
+
+ [NDEFWriter interface: existence and properties of interface prototype object's "constructor" property]
+ expected: FAIL
+
+ [NDEFReader interface: attribute onreading]
+ expected: FAIL
+
+ [Stringification of new NDEFWriter();]
+ expected: FAIL
+
+ [NDEFReadingEvent interface: attribute message]
+ expected: FAIL
+
+ [NDEFWriter interface: existence and properties of interface prototype object]
+ expected: FAIL
+
+ [NDEFWriter interface object name]
+ expected: FAIL
+
+ [NDEFReadingEvent interface object length]
+ expected: FAIL
+
+ [NDEFRecord interface: attribute encoding]
+ expected: FAIL
+
+ [NDEFReader interface object name]
+ expected: FAIL
+
+ [NDEFReader interface: existence and properties of interface prototype object's @@unscopables property]
+ expected: FAIL
+
+ [NDEFReader interface: existence and properties of interface prototype object's "constructor" property]
+ expected: FAIL
+
+ [NDEFWriter interface object length]
+ expected: FAIL
+
+ [NDEFRecord interface: attribute data]
+ expected: FAIL
+
+ [NDEFReadingEvent interface object name]
+ expected: FAIL
+
+ [NDEFReader interface: existence and properties of interface object]
+ expected: FAIL
+
+ [NDEFReadingEvent interface: existence and properties of interface prototype object]
+ expected: FAIL
+
+ [NDEFReadingEvent interface: existence and properties of interface prototype object's "constructor" property]
+ expected: FAIL
+
+ [NDEFWriter interface: existence and properties of interface object]
+ expected: FAIL
+
+ [NDEFReadingEvent interface: existence and properties of interface object]
+ expected: FAIL
+
+ [NDEFReader interface: new NDEFReader(); must inherit property "onreading" with the proper type]
+ expected: FAIL
+
+ [NDEFReader interface: existence and properties of interface prototype object]
+ expected: FAIL
+
+ [Stringification of new NDEFReader();]
+ expected: FAIL
+
+ [NDEFRecord interface: attribute lang]
+ expected: FAIL
+
+ [NDEFReadingEvent interface: attribute serialNumber]
+ expected: FAIL
+
+ [NDEFWriter interface: existence and properties of interface prototype object's @@unscopables property]
+ expected: FAIL
+
+ [NDEFReader interface: attribute onerror]
+ expected: FAIL
+
+ [NDEFReader interface: new NDEFReader(); must inherit property "onerror" with the proper type]
+ expected: FAIL
+
+ [NDEFReadingEvent interface: new NDEFReadingEvent("reading", { message: {"url":"/custom/path","records":[{"recordType":"text","data":"Hello World","id":"/custom/path"}\]} }) must inherit property "serialNumber" with the proper type]
+ expected: FAIL
+
+ [NDEFRecord interface: new NDEFRecord({"recordType":"text","data":"Hello World","id":"/custom/path"}); must inherit property "mediaType" with the proper type]
+ expected: FAIL
+
+ [NDEFRecord interface: new NDEFRecord({"recordType":"text","data":"Hello World","id":"/custom/path"}); must inherit property "lang" with the proper type]
+ expected: FAIL
+
+ [NDEFRecord interface: new NDEFRecord({"recordType":"text","data":"Hello World","id":"/custom/path"}); must inherit property "toRecords()" with the proper type]
+ expected: FAIL
+
+ [NDEFMessage interface: new NDEFMessage({"url":"/custom/path","records":[{"recordType":"text","data":"Hello World","id":"/custom/path"}\]}); must inherit property "records" with the proper type]
+ expected: FAIL
+
+ [NDEFRecord interface: new NDEFRecord({"recordType":"text","data":"Hello World","id":"/custom/path"}); must inherit property "recordType" with the proper type]
+ expected: FAIL
+
+ [NDEFReadingEvent interface: new NDEFReadingEvent("reading", { message: {"url":"/custom/path","records":[{"recordType":"text","data":"Hello World","id":"/custom/path"}\]} }) must inherit property "message" with the proper type]
+ expected: FAIL
+
+ [Stringification of new NDEFRecord({"recordType":"text","data":"Hello World","id":"/custom/path"});]
+ expected: FAIL
+
+ [NDEFMessage must be primary interface of new NDEFMessage({"url":"/custom/path","records":[{"recordType":"text","data":"Hello World","id":"/custom/path"}\]});]
+ expected: FAIL
+
+ [NDEFRecord interface: new NDEFRecord({"recordType":"text","data":"Hello World","id":"/custom/path"}); must inherit property "id" with the proper type]
+ expected: FAIL
+
+ [NDEFReadingEvent must be primary interface of new NDEFReadingEvent("reading", { message: {"url":"/custom/path","records":[{"recordType":"text","data":"Hello World","id":"/custom/path"}\]} })]
+ expected: FAIL
+
+ [NDEFRecord interface: new NDEFRecord({"recordType":"text","data":"Hello World","id":"/custom/path"}); must inherit property "data" with the proper type]
+ expected: FAIL
+
+ [NDEFRecord must be primary interface of new NDEFRecord({"recordType":"text","data":"Hello World","id":"/custom/path"});]
+ expected: FAIL
+
+ [Stringification of new NDEFMessage({"url":"/custom/path","records":[{"recordType":"text","data":"Hello World","id":"/custom/path"}\]});]
+ expected: FAIL
+
+ [Stringification of new NDEFReadingEvent("reading", { message: {"url":"/custom/path","records":[{"recordType":"text","data":"Hello World","id":"/custom/path"}\]} })]
+ expected: FAIL
+
+ [NDEFRecord interface: new NDEFRecord({"recordType":"text","data":"Hello World","id":"/custom/path"}); must inherit property "encoding" with the proper type]
+ expected: FAIL
+
+ [NDEFReader interface: new NDEFReader(); must inherit property "scan(optional NDEFScanOptions)" with the proper type]
+ expected: FAIL
+
+ [NDEFReader interface: calling scan(optional NDEFScanOptions) on new NDEFReader(); with too few arguments must throw TypeError]
+ expected: FAIL
+
+ [NDEFWriter interface: calling write(NDEFMessageSource, optional NDEFWriteOptions) on new NDEFWriter(); with too few arguments must throw TypeError]
+ expected: FAIL
+
+ [NDEFWriter interface: new NDEFWriter(); must inherit property "write(NDEFMessageSource, optional NDEFWriteOptions)" with the proper type]
+ expected: FAIL
+
+ [NDEFWriter interface: operation write(NDEFMessageSource, optional NDEFWriteOptions)]
+ expected: FAIL
+
+ [NDEFReader interface: operation scan(optional NDEFScanOptions)]
+ expected: FAIL
+