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(t) { assert_true(window.testRunner instanceof Object); t.done(); }
, | 7 test(function(t) { assert_true(window.testRunner instanceof Object); t.done(); }
, |
7 "window.testRunner is required for the following tests."); | 8 "window.testRunner is required for the following tests."); |
8 | 9 |
9 var generic_access = "00001800-0000-1000-8000-00805f9b34fb"; | 10 var generic_access = "00001800-0000-1000-8000-00805f9b34fb"; |
10 var heart_rate = "0000180D-0000-1000-8000-00805f9b34fb"; | 11 var heart_rate = "0000180D-0000-1000-8000-00805f9b34fb"; |
11 | 12 |
12 sequential_promise_test(function() { | 13 sequential_promise_test(function() { |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 }).then(function(services) { | 69 }).then(function(services) { |
69 // getPrimaryService should return the same object if it was created | 70 // getPrimaryService should return the same object if it was created |
70 // earlier. https://crbug.com/495270 | 71 // earlier. https://crbug.com/495270 |
71 // TODO(ortuno): Change to assert_equals. | 72 // TODO(ortuno): Change to assert_equals. |
72 assert_not_equals(services[0], services[1], | 73 assert_not_equals(services[0], services[1], |
73 "Should return the same service as the first call."); | 74 "Should return the same service as the first call."); |
74 }); | 75 }); |
75 }, 'Calls to get the same service should return the same object.'); | 76 }, 'Calls to get the same service should return the same object.'); |
76 | 77 |
77 </script> | 78 </script> |
OLD | NEW |