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

Unified Diff: chrome/test/data/extensions/api_test/bluetooth_low_energy/write_descriptor_value/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/write_descriptor_value/runtest.js
diff --git a/chrome/test/data/extensions/api_test/bluetooth_low_energy/write_descriptor_value/runtest.js b/chrome/test/data/extensions/api_test/bluetooth_low_energy/write_descriptor_value/runtest.js
index ca687b10d375ec87d3c01bfb338a91379985ce0c..d2484cc172808fed0913d2082020bcf913e77108 100644
--- a/chrome/test/data/extensions/api_test/bluetooth_low_energy/write_descriptor_value/runtest.js
+++ b/chrome/test/data/extensions/api_test/bluetooth_low_energy/write_descriptor_value/runtest.js
@@ -30,19 +30,19 @@ valueBytes.set(bytes);
// 1. Unknown descriptor instanceId.
writeDescriptorValue(badDescId, writeValue, function (result) {
if (result || !chrome.runtime.lastError) {
- chrome.test.fail('\'badDescId\' did not cause failure');
+ chrome.test.sendMessage('\'badDescId\' did not cause failure');
}
// 2. Known descriptor instanceId, but call failure.
writeDescriptorValue(descId, writeValue, function (result) {
if (result || !chrome.runtime.lastError) {
- chrome.test.fail('writeDescriptorValue should have failed');
+ chrome.test.sendMessage('writeDescriptorValue should have failed');
}
// 3. Call should succeed.
writeDescriptorValue(descId, writeValue, function (result) {
if (chrome.runtime.lastError) {
- chrome.test.fail(chrome.runtime.lastError.message);
+ chrome.test.sendMessage(chrome.runtime.lastError.message);
}
chrome.bluetoothLowEnergy.getDescriptor(descId, function (result) {

Powered by Google App Engine
This is Rietveld 408576698