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

Unified Diff: third_party/WebKit/LayoutTests/bluetooth/requestDevice/le-not-supported.html

Issue 2737343003: bluetooth: Add FakeBluetooth interface (Closed)
Patch Set: Move to public deps Created 3 years, 9 months 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/bluetooth/requestDevice/le-not-supported.html
diff --git a/third_party/WebKit/LayoutTests/bluetooth/requestDevice/le-not-supported.html b/third_party/WebKit/LayoutTests/bluetooth/requestDevice/le-not-supported.html
new file mode 100644
index 0000000000000000000000000000000000000000..cf508401619bb49b5ace9e558de4beb6d4d2b84e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/bluetooth/requestDevice/le-not-supported.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script src="../../resources/mojo-helpers.js"></script>
+<script src="../../resources/web-bluetooth-test.js"></script>
+<script src="../../resources/bluetooth/bluetooth-helpers.js"></script>
+<script>
+'use strict';
+promise_test(t => {
+ return navigator.bluetooth.test.setLEAvailability(false)
+ .then(() => promise_rejects(t, 'NotFoundError',
+ navigator.bluetooth.requestDevice({acceptAllDevices: true})));
+}, 'Reject with NotFoundError if bluetooth is not supported.');
+</script>
« no previous file with comments | « device/bluetooth/test/fake_bluetooth.cc ('k') | third_party/WebKit/LayoutTests/resources/web-bluetooth-test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698