| 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="bluetooth-helpers.js"></script> | 4 <script src="bluetooth-helpers.js"></script> |
| 5 <script> | 5 <script> |
| 6 test(function(t) { assert_exists(window, "testRunner"); t.done(); }, | 6 test(function(t) { assert_true(window.testRunner instanceof Object); t.done(); }
, |
| 7 "window.testRunner is required for the following tests."); | 7 "window.testRunner is required for the following tests."); |
| 8 | 8 |
| 9 // Generic Access Service. | 9 // Generic Access Service. |
| 10 var serviceUUID = "00001800-0000-1000-8000-00805f9b34fb"; | 10 var serviceUUID = "00001800-0000-1000-8000-00805f9b34fb"; |
| 11 // Device Name Characteristic. Belongs to Generic Access. | 11 // Device Name Characteristic. Belongs to Generic Access. |
| 12 var includedCharacteristicUUID = "00002a00-0000-1000-8000-00805f9b34fb"; | 12 var includedCharacteristicUUID = "00002a00-0000-1000-8000-00805f9b34fb"; |
| 13 // Battery Level. Belongs to Battery Service. | 13 // Battery Level. Belongs to Battery Service. |
| 14 var nonIncludedCharacteristicUUID = "00002a19-0000-1000-8000-00805f9b34fb"; | 14 var nonIncludedCharacteristicUUID = "00002a19-0000-1000-8000-00805f9b34fb"; |
| 15 | 15 |
| 16 sequential_promise_test(function() { | 16 sequential_promise_test(function() { |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 }).then(function(characteristics) { | 78 }).then(function(characteristics) { |
| 79 // TODO(ortuno): getCharacteristic should return the same object | 79 // TODO(ortuno): getCharacteristic should return the same object |
| 80 // if it was created earlier. | 80 // if it was created earlier. |
| 81 // https://crbug.com/495270 | 81 // https://crbug.com/495270 |
| 82 assert_not_equals(characteristics[0], characteristics[1], | 82 assert_not_equals(characteristics[0], characteristics[1], |
| 83 "Should return the same service as the first call."); | 83 "Should return the same service as the first call."); |
| 84 }); | 84 }); |
| 85 }, 'Calls to get the same characteristic should return the same object.'); | 85 }, 'Calls to get the same characteristic should return the same object.'); |
| 86 | 86 |
| 87 </script> | 87 </script> |
| OLD | NEW |