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

Side by Side Diff: third_party/WebKit/LayoutTests/bluetooth/idl/idl-BluetoothUUID.html

Issue 2544513004: Fix WebBluetooth generator to distinguish between different methods. (Closed)
Patch Set: Remove TL;DR in README Created 4 years 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../resources/testharness.js"></script> 2 <script src="../../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script> 3 <script src="../../resources/testharnessreport.js"></script>
4 <script> 4 <script>
5 'use strict' 5 'use strict'
6 6
7 var base_uuid = '00000000-0000-1000-8000-00805f9b34fb' 7 var base_uuid = '00000000-0000-1000-8000-00805f9b34fb'
8 8
9 test(() => { 9 test(() => {
10 let base_alias = 0x0 10 let base_alias = 0x0
11 assert_equals(BluetoothUUID.getService(base_alias), base_uuid); 11 assert_equals(BluetoothUUID.getService(base_alias), base_uuid);
12 assert_equals(BluetoothUUID.getCharacteristic(base_alias), base_uuid); 12 assert_equals(BluetoothUUID.getCharacteristic(base_alias), base_uuid);
13 assert_equals(BluetoothUUID.getDescriptor(base_alias), base_uuid); 13 assert_equals(BluetoothUUID.getDescriptor(base_alias), base_uuid);
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 157
158 // getDescriptor 158 // getDescriptor
159 assert_throws(TypeError(), () => BluetoothUUID.getDescriptor(object)); 159 assert_throws(TypeError(), () => BluetoothUUID.getDescriptor(object));
160 assert_throws(TypeError(), () => BluetoothUUID.getDescriptor(array)); 160 assert_throws(TypeError(), () => BluetoothUUID.getDescriptor(array));
161 assert_throws(TypeError(), () => BluetoothUUID.getDescriptor(func)); 161 assert_throws(TypeError(), () => BluetoothUUID.getDescriptor(func));
162 assert_throws(TypeError(), () => BluetoothUUID.getDescriptor(undefined)); 162 assert_throws(TypeError(), () => BluetoothUUID.getDescriptor(undefined));
163 assert_throws(TypeError(), () => BluetoothUUID.getDescriptor(null)); 163 assert_throws(TypeError(), () => BluetoothUUID.getDescriptor(null));
164 assert_throws(TypeError(), () => BluetoothUUID.getDescriptor(false)); 164 assert_throws(TypeError(), () => BluetoothUUID.getDescriptor(false));
165 }, 'Non-number and non-strings'); 165 }, 'Non-number and non-strings');
166 </script> 166 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698