Index: third_party/WebKit/LayoutTests/nfc/push.html |
diff --git a/third_party/WebKit/LayoutTests/nfc/push.html b/third_party/WebKit/LayoutTests/nfc/push.html |
index 44301eedee11b2df9cfedee5e5a13112eab41fb6..edd1ee12d1e3a487ef87107ba7aae8938d968a49 100644 |
--- a/third_party/WebKit/LayoutTests/nfc/push.html |
+++ b/third_party/WebKit/LayoutTests/nfc/push.html |
@@ -86,6 +86,16 @@ nfc_test(nfc => { |
}, 'nfc.push should succeed when NFC HW is enabled'); |
nfc_test(nfc => { |
+ return assertRejectsWithError( |
+ navigator.nfc.push(test_text_data, { timeout: 'invalid' }), 'TypeError'); |
+}, 'nfc.push should fail when invalid timeout is provided'); |
+ |
+nfc_test(nfc => { |
+ return assertRejectsWithError( |
+ navigator.nfc.push(test_text_data, { timeout: -1 }), 'TypeError'); |
+}, 'nfc.push should fail when invalid negative timeout value is provided'); |
+ |
+nfc_test(nfc => { |
nfc.mockNFC.setPendingPushCompleted(false); |
return assertRejectsWithError( |
navigator.nfc.push(test_text_data,{ timeout: 1 }), |