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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/bluetooth/idl-Bluetooth.html

Issue 2787103002: Added a test in response to Issue 2747813006 (Closed)
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/bluetooth/idl/idl-Bluetooth.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>Bluetooth interface</title>
2 <script src="../../resources/testharness.js"></script> 3 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script> 4 <script src="../../resources/testharnessreport.js"></script>
4 <script> 5 <script>
5 'use strict'; 6 'use strict';
6 7
7 test(() => { 8 test(() => {
8 assert_throws(null, () => new Bluetooth(), 9 assert_throws(null, () => new Bluetooth(),
9 'the constructor should not be callable with "new"'); 10 'the constructor should not be callable with "new"');
10 assert_throws(null, () => Bluetooth(), 11 assert_throws(null, () => Bluetooth(),
11 'the constructor should not be callable'); 12 'the constructor should not be callable');
12 13
13 // Bluetooth implements BluetoothDiscovery; 14 // Bluetooth implements BluetoothDiscovery;
14 assert_true('requestDevice' in navigator.bluetooth); 15 assert_true('requestDevice' in navigator.bluetooth);
16 assert_equals(navigator.bluetooth.requestDevice.length, 0);
15 }, 'Bluetooth IDL test'); 17 }, 'Bluetooth IDL test');
18
16 </script> 19 </script>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/bluetooth/idl/idl-Bluetooth.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698