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/testharness-helpers.js"></script> |
3 <script src="../resources/testharnessreport.js"></script> | 4 <script src="../resources/testharnessreport.js"></script> |
4 <script src="bluetooth-helpers.js"></script> | 5 <script src="bluetooth-helpers.js"></script> |
5 <script> | 6 <script> |
6 test(function() { | 7 test(function() { |
7 assert_throws(null, function() { new BluetoothDevice(); }, | 8 assert_throws(null, function() { new BluetoothDevice(); }, |
8 'the constructor should not be callable with "new"'); | 9 'the constructor should not be callable with "new"'); |
9 assert_throws(null, function() { BluetoothDevice(); }, | 10 assert_throws(null, function() { BluetoothDevice(); }, |
10 'the constructor should not be callable'); | 11 'the constructor should not be callable'); |
11 }, 'BluetoothDevice IDL test'); | 12 }, 'BluetoothDevice IDL test'); |
12 | 13 |
(...skipping 24 matching lines...) Expand all Loading... |
37 assert_equals(device.vendorIDSource, "bluetooth"); | 38 assert_equals(device.vendorIDSource, "bluetooth"); |
38 assert_equals(device.vendorID, 0xFFFF); | 39 assert_equals(device.vendorID, 0xFFFF); |
39 assert_equals(device.productID, 1); | 40 assert_equals(device.productID, 1); |
40 assert_equals(device.productVersion, 2); | 41 assert_equals(device.productVersion, 2); |
41 assert_equals(device.paired, true); | 42 assert_equals(device.paired, true); |
42 assert_equals(device.uuids[0], genericAccessServiceUuid); | 43 assert_equals(device.uuids[0], genericAccessServiceUuid); |
43 assert_equals(device.uuids[1], genericAttributeServiceUuid); | 44 assert_equals(device.uuids[1], genericAttributeServiceUuid); |
44 }); | 45 }); |
45 }, 'BluetoothDevice attributes.'); | 46 }, 'BluetoothDevice attributes.'); |
46 </script> | 47 </script> |
OLD | NEW |