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

Unified Diff: chrome/test/data/extensions/api_test/bluetooth_low_energy/connect_in_progress/runtest.js

Issue 593163002: Short-circuit failures in BLE js tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 6 years, 3 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
Index: chrome/test/data/extensions/api_test/bluetooth_low_energy/connect_in_progress/runtest.js
diff --git a/chrome/test/data/extensions/api_test/bluetooth_low_energy/connect_in_progress/runtest.js b/chrome/test/data/extensions/api_test/bluetooth_low_energy/connect_in_progress/runtest.js
index 897e03d38eed02dbaf98a68ccee44e239c9c839e..2b46450c731d6aaf4696ed5f91d275eaedcf7a9e 100644
--- a/chrome/test/data/extensions/api_test/bluetooth_low_energy/connect_in_progress/runtest.js
+++ b/chrome/test/data/extensions/api_test/bluetooth_low_energy/connect_in_progress/runtest.js
@@ -10,12 +10,14 @@ var errorInProgress = 'In progress';
function expectError(message) {
if (!chrome.runtime.lastError ||
chrome.runtime.lastError.message != message)
- chrome.test.fail('Expected error: ' + message);
+ chrome.test.sendMessage('Expected error: <' + message + '> got <'
+ + chrome.runtime.lastError.message + '>');
}
function expectSuccess() {
if (chrome.runtime.lastError)
- chrome.test.fail('Unexpected error: ' + chrome.runtime.lastError.message);
+ chrome.test.sendMessage('Unexpected error: '
+ + chrome.runtime.lastError.message);
}
ble.connect(deviceAddress0, function () {

Powered by Google App Engine
This is Rietveld 408576698