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

Unified Diff: LayoutTests/bluetooth/writeValue.html

Issue 1295373003: Remove sequential_promise_test helper, just use promise_test (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove testharness-helpers.js inclusion from bluetooth tests Created 5 years, 4 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/requestDevice.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/writeValue.html
diff --git a/LayoutTests/bluetooth/writeValue.html b/LayoutTests/bluetooth/writeValue.html
index b80f4d25aadf7e3f562ff5e1ba62b324820202c6..ed63f1d13da2d502a9cae5cad785840490b4c587 100644
--- a/LayoutTests/bluetooth/writeValue.html
+++ b/LayoutTests/bluetooth/writeValue.html
@@ -1,6 +1,5 @@
<!DOCTYPE html>
<script src="../resources/testharness.js"></script>
-<script src="../resources/testharness-helpers.js"></script>
<script src="../resources/testharnessreport.js"></script>
<script src="resources/bluetooth-helpers.js"></script>
<script>
@@ -9,7 +8,7 @@
test(function(t) { assert_exists(window, 'testRunner'); t.done(); },
'window.testRunner is required for the following tests.');
-sequential_promise_test(() => {
+promise_test(() => {
testRunner.setBluetoothMockDataSet('GenericAccessAdapter');
return requestDeviceWithKeyDown({filters: [{services: ['generic_access']}]})
.then(device => device.connectGATT())
@@ -25,7 +24,7 @@ sequential_promise_test(() => {
});
}, 'Device goes out of range. Reject with NetworkError.');
-sequential_promise_test(() => {
+promise_test(() => {
testRunner.setBluetoothMockDataSet('GenericAccessAdapter');
return requestDeviceWithKeyDown({filters: [{services: ['generic_access']}]})
.then(device => device.connectGATT())
@@ -41,7 +40,7 @@ sequential_promise_test(() => {
});
}, 'Service gets removed. Reject with InvalidStateError.');
-sequential_promise_test(() => {
+promise_test(() => {
testRunner.setBluetoothMockDataSet('GenericAccessAdapter');
return requestDeviceWithKeyDown({filters: [{services: ['generic_access']}]})
.then(device => device.connectGATT())
@@ -125,7 +124,7 @@ sequential_promise_test(() => {
message: 'GATT Error: Not supported.'
}
}].forEach(testSpec => {
- sequential_promise_test(() => {
+ promise_test(() => {
testRunner.setBluetoothMockDataSet('FailingGATTOperationsAdapter');
return requestDeviceWithKeyDown({filters: [{services: [errorUUID(0xA0)]}]})
.then(device => device.connectGATT())
@@ -140,7 +139,7 @@ sequential_promise_test(() => {
}, testSpec.testName);
});
-sequential_promise_test(() => {
+promise_test(() => {
testRunner.setBluetoothMockDataSet('GenericAccessAdapter');
return requestDeviceWithKeyDown({filters: [{services: ['generic_access']}]})
.then(device => device.connectGATT())
@@ -155,7 +154,7 @@ sequential_promise_test(() => {
});
}, 'Trying to write more than 512 bytes should return an error.');
-sequential_promise_test(() => {
+promise_test(() => {
testRunner.setBluetoothMockDataSet('GenericAccessAdapter');
return requestDeviceWithKeyDown({filters: [{services: ['generic_access']}]})
.then(device => device.connectGATT())
« no previous file with comments | « LayoutTests/bluetooth/requestDevice.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