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

Unified Diff: chrome/test/data/extensions/api_test/bluetooth_low_energy/get_removed_characteristic/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/get_removed_characteristic/runtest.js
diff --git a/chrome/test/data/extensions/api_test/bluetooth_low_energy/get_removed_characteristic/runtest.js b/chrome/test/data/extensions/api_test/bluetooth_low_energy/get_removed_characteristic/runtest.js
index c0b38bd97620408941face8c8b724ed271326f91..5213d9f069181996fb2982a76bf861592a20ede3 100644
--- a/chrome/test/data/extensions/api_test/bluetooth_low_energy/get_removed_characteristic/runtest.js
+++ b/chrome/test/data/extensions/api_test/bluetooth_low_energy/get_removed_characteristic/runtest.js
@@ -7,7 +7,7 @@ var charId = 'char_id0';
getCharacteristic(charId, function (result) {
if (chrome.runtime.lastError) {
- chrome.test.fail(chrome.runtime.lastError.message);
+ chrome.test.sendMessage(chrome.runtime.lastError.message);
}
chrome.test.assertEq(charId, result.instanceId);
@@ -15,7 +15,7 @@ getCharacteristic(charId, function (result) {
chrome.test.sendMessage('ready', function (message) {
getCharacteristic(charId, function (result) {
if (result || !chrome.runtime.lastError) {
- chrome.test.fail('Call to getCharacteristic should have failed');
+ chrome.test.sendMessage('Call to getCharacteristic should have failed');
}
chrome.test.sendMessage('ready', function (message) {

Powered by Google App Engine
This is Rietveld 408576698