Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Unified Diff: third_party/WebKit/LayoutTests/nfc/idl-NFC.html

Issue 1444303002: [webnfc] Align NFC interface with latest specification. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes for review comments from Kenneth Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/nfc/idl-NFC.html
diff --git a/third_party/WebKit/LayoutTests/nfc/idl-NFC.html b/third_party/WebKit/LayoutTests/nfc/idl-NFC.html
index d098e0f50fdc1b87a8c6d7d791ec3976ce9388d3..1ca2eebe7925f83f91c911e90bcae19e932a33bd 100644
--- a/third_party/WebKit/LayoutTests/nfc/idl-NFC.html
+++ b/third_party/WebKit/LayoutTests/nfc/idl-NFC.html
@@ -7,5 +7,14 @@ test(function() {
'the constructor should not be callable with "new"');
assert_throws(null, function() { NFC(); },
'the constructor should not be callable');
+
+ // Test that navigator.nfc.push exists
+ assert_true('push' in navigator.nfc);
+ // Test that navigator.nfc.cancelPush exists
+ assert_true('cancelPush' in navigator.nfc);
+ // Test that navigator.nfc.watch exists
+ assert_true('watch' in navigator.nfc);
+ // Test that navigator.nfc.cancelWatch exists
+ assert_true('cancelWatch' in navigator.nfc);
}, 'NFC IDL test');
</script>

Powered by Google App Engine
This is Rietveld 408576698