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

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

Issue 2737343003: bluetooth: Add FakeBluetooth interface (Closed)
Patch Set: move web-bluetooth-test.js Created 3 years, 8 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..aaf9289c347dea9c839f171cd37b862c3e1280f3
--- /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/bluetooth/web-bluetooth-test.js"></script>
+<script src="../../resources/bluetooth/bluetooth-helpers.js"></script>
+<script>
+'use strict';
+promise_test(t => {
+ return navigator.bluetooth.test.setLESupported(false)
+ .then(() => promise_rejects(t, 'NotFoundError',
+ requestDeviceWithKeyDown({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/bluetooth/web-bluetooth-test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698