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

Unified Diff: LayoutTests/bluetooth/requestDevice.html

Issue 1216203003: Replace all sequential_promise_tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@update-testharnessjs
Patch Set: Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/bluetooth/readValue.html ('k') | LayoutTests/http/tests/fetch/chromium/error-messages.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/bluetooth/requestDevice.html
diff --git a/LayoutTests/bluetooth/requestDevice.html b/LayoutTests/bluetooth/requestDevice.html
index 2b24d2683e0ed2ffc8aeef49942e335e376ab864..9445804a2698d0dbd657e7f0e93a18240d9ae4b3 100644
--- a/LayoutTests/bluetooth/requestDevice.html
+++ b/LayoutTests/bluetooth/requestDevice.html
@@ -7,19 +7,19 @@
test(function(t) { assert_true(window.testRunner instanceof Object); t.done(); },
"window.testRunner is required for the following tests.");
-sequential_promise_test(function() {
+promise_test(function() {
testRunner.setBluetoothMockDataSet('EmptyAdapter');
return assert_promise_rejects(navigator.bluetooth.requestDevice(),
new TypeError());
}, 'Requires an argument.');
-sequential_promise_test(function() {
+promise_test(function() {
testRunner.setBluetoothMockDataSet('EmptyAdapter');
return assert_promise_rejects(navigator.bluetooth.requestDevice({}),
new TypeError());
}, 'RequestDeviceOptions requires a |filters| member.');
-sequential_promise_test(function() {
+promise_test(function() {
testRunner.setBluetoothMockDataSet('EmptyAdapter');
return navigator.bluetooth.requestDevice({
filters: [{services: [genericAccessServiceUuid]}]
@@ -31,7 +31,7 @@ sequential_promise_test(function() {
});
}, 'Reject with NotFoundError.');
-sequential_promise_test(function() {
+promise_test(function() {
testRunner.setBluetoothMockDataSet('SingleEmptyDeviceAdapter');
return navigator.bluetooth.requestDevice({
filters: [{services: [genericAccessServiceUuid]}]
@@ -40,7 +40,7 @@ sequential_promise_test(function() {
});
}, 'Mock will resolve.');
-sequential_promise_test(function() {
+promise_test(function() {
testRunner.setBluetoothMockDataSet('ScanFilterCheckingAdapter');
// The work of this test is done in the ScanFilterCheckingAdapter. It asserts
// that this requestDevice() call tells the platform to scan for only devices
@@ -55,7 +55,7 @@ sequential_promise_test(function() {
});
}, 'Filters restrict the platform\'s Bluetooth scan.');
-sequential_promise_test(function() {
+promise_test(function() {
testRunner.setBluetoothMockDataSet('MultiDeviceAdapter');
return navigator.bluetooth.requestDevice({
filters: [{services: [glucoseServiceUuid]}]
@@ -64,7 +64,7 @@ sequential_promise_test(function() {
});
}, 'Simple filter selects matching device.');
-sequential_promise_test(function() {
+promise_test(function() {
testRunner.setBluetoothMockDataSet('MultiDeviceAdapter');
return navigator.bluetooth.requestDevice({
filters: [{services: [genericAccessServiceUuid, heartRateServiceUuid]}]
@@ -73,7 +73,7 @@ sequential_promise_test(function() {
});
}, 'Filter with 2 services returns a matching device.');
-sequential_promise_test(function() {
+promise_test(function() {
testRunner.setBluetoothMockDataSet('MultiDeviceAdapter');
return navigator.bluetooth.requestDevice({
filters: [{services: [batteryServiceUuid]},
@@ -83,7 +83,7 @@ sequential_promise_test(function() {
});
}, 'An extra filter doesn\'t prevent matching.');
-sequential_promise_test(function() {
+promise_test(function() {
testRunner.setBluetoothMockDataSet('MultiDeviceAdapter');
// Both devices support the Generic Access service, but things need to
// support both services to pass the filter, and neither has a Battery
« no previous file with comments | « LayoutTests/bluetooth/readValue.html ('k') | LayoutTests/http/tests/fetch/chromium/error-messages.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698