| Index: chrome/test/data/extensions/api_test/bluetooth_low_energy/write_characteristic_value/runtest.js
|
| diff --git a/chrome/test/data/extensions/api_test/bluetooth_low_energy/write_characteristic_value/runtest.js b/chrome/test/data/extensions/api_test/bluetooth_low_energy/write_characteristic_value/runtest.js
|
| index 51fd4e96414ad0722a820c0c02c99678a6c5ff4c..f1d0ba0f9e58fcac01262e55115060992945e62e 100644
|
| --- a/chrome/test/data/extensions/api_test/bluetooth_low_energy/write_characteristic_value/runtest.js
|
| +++ b/chrome/test/data/extensions/api_test/bluetooth_low_energy/write_characteristic_value/runtest.js
|
| @@ -32,19 +32,19 @@ valueBytes.set(bytes);
|
| // 1. Unknown characteristic instanceId.
|
| writeCharacteristicValue(badCharId, writeValue, function (result) {
|
| if (result || !chrome.runtime.lastError) {
|
| - chrome.test.fail('\'badCharId\' did not cause failure');
|
| + chrome.test.sendMessage('\'badCharId\' did not cause failure');
|
| }
|
|
|
| // 2. Known characteristic instanceId, but call failure.
|
| writeCharacteristicValue(charId, writeValue, function (result) {
|
| if (result || !chrome.runtime.lastError) {
|
| - chrome.test.fail('writeCharacteristicValue should have failed');
|
| + chrome.test.sendMessage('writeCharacteristicValue should have failed');
|
| }
|
|
|
| // 3. Call should succeed.
|
| writeCharacteristicValue(charId, writeValue, function (result) {
|
| if (chrome.runtime.lastError) {
|
| - chrome.test.fail(chrome.runtime.lastError.message);
|
| + chrome.test.sendMessage(chrome.runtime.lastError.message);
|
| }
|
|
|
| chrome.bluetoothLowEnergy.getCharacteristic(charId, function (result) {
|
|
|