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

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

Issue 593163002: Short-circuit failures in BLE js tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Testing new cls 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/get_services/runtest.js
diff --git a/chrome/test/data/extensions/api_test/bluetooth_low_energy/get_services/runtest.js b/chrome/test/data/extensions/api_test/bluetooth_low_energy/get_services/runtest.js
index ed16734c785b5f579659247af67dd228cef94963..1849dfdd1825a2377ce94fe69a7ce2090d7a0a62 100644
--- a/chrome/test/data/extensions/api_test/bluetooth_low_energy/get_services/runtest.js
+++ b/chrome/test/data/extensions/api_test/bluetooth_low_energy/get_services/runtest.js
@@ -27,19 +27,19 @@ var services = null;
function failOnError() {
if (chrome.runtime.lastError) {
- chrome.test.fail(chrome.runtime.lastError.message);
+ chrome.test.sendMessage(chrome.runtime.lastError.message);
}
}
chrome.bluetoothLowEnergy.getServices(deviceAddress, function(result) {
if (result || !chrome.runtime.lastError) {
- chrome.test.fail('Unexpected device.');
+ chrome.test.sendMessage('Unexpected device.');
}
chrome.bluetoothLowEnergy.getServices(deviceAddress, function(result) {
failOnError();
if (!result || result.length != 0) {
- chrome.test.fail('Services should be empty.');
+ chrome.test.sendMessage('Services should be empty.');
}
chrome.bluetoothLowEnergy.getServices(deviceAddress, function(result) {

Powered by Google App Engine
This is Rietveld 408576698