| 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 src="resources/bluetooth-helpers.js"></script> | 4 <script src="../resources/bluetooth/bluetooth-helpers.js"></script> |
| 5 <script> | 5 <script> |
| 6 test(() => { | 6 test(() => { |
| 7 assert_throws(null, () => new BluetoothDevice(), | 7 assert_throws(null, () => new BluetoothDevice(), |
| 8 'the constructor should not be callable with "new"'); | 8 'the constructor should not be callable with "new"'); |
| 9 assert_throws(null, () => BluetoothDevice(), | 9 assert_throws(null, () => BluetoothDevice(), |
| 10 'the constructor should not be callable'); | 10 'the constructor should not be callable'); |
| 11 }, 'BluetoothDevice IDL test'); | 11 }, 'BluetoothDevice IDL test'); |
| 12 | 12 |
| 13 test(t => { assert_true(window.testRunner instanceof Object); t.done(); }, | 13 test(t => { assert_true(window.testRunner instanceof Object); t.done(); }, |
| 14 'window.testRunner is required for the following tests.'); | 14 'window.testRunner is required for the following tests.'); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 36 assert_equals(device.deviceClass, 0x1F00); | 36 assert_equals(device.deviceClass, 0x1F00); |
| 37 assert_equals(device.vendorIDSource, 'bluetooth'); | 37 assert_equals(device.vendorIDSource, 'bluetooth'); |
| 38 assert_equals(device.vendorID, 0xFFFF); | 38 assert_equals(device.vendorID, 0xFFFF); |
| 39 assert_equals(device.productID, 1); | 39 assert_equals(device.productID, 1); |
| 40 assert_equals(device.productVersion, 2); | 40 assert_equals(device.productVersion, 2); |
| 41 assert_equals(device.uuids.length, 1); | 41 assert_equals(device.uuids.length, 1); |
| 42 assert_equals(device.uuids[0], heart_rate.uuid); | 42 assert_equals(device.uuids[0], heart_rate.uuid); |
| 43 }); | 43 }); |
| 44 }, 'BluetoothDevice attributes.'); | 44 }, 'BluetoothDevice attributes.'); |
| 45 </script> | 45 </script> |
| OLD | NEW |