| OLD | NEW |
| 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 Loading... |
| 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> |
| OLD | NEW |