Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Side by Side Diff: LayoutTests/bluetooth/getPrimaryService.html

Issue 1211623005: Unify multiple sequential_promise_test definitions. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: update fetch templates and remove new duplicate of this method Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
OLDNEW
« no previous file with comments | « LayoutTests/bluetooth/getCharacteristic.html ('k') | LayoutTests/bluetooth/idl-BluetoothDevice.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698