| Index: chrome/test/data/extensions/api_test/bluetooth_low_energy/read_characteristic_value/runtest.js
|
| diff --git a/chrome/test/data/extensions/api_test/bluetooth_low_energy/read_characteristic_value/runtest.js b/chrome/test/data/extensions/api_test/bluetooth_low_energy/read_characteristic_value/runtest.js
|
| index 7c80a9797459da8c44c0a37ce5ffa2b3c44f6adc..4807c2176ecbcd1960bcc7799ae006a0413757af 100644
|
| --- a/chrome/test/data/extensions/api_test/bluetooth_low_energy/read_characteristic_value/runtest.js
|
| +++ b/chrome/test/data/extensions/api_test/bluetooth_low_energy/read_characteristic_value/runtest.js
|
| @@ -18,26 +18,27 @@ var characteristic = null;
|
| // 1. Unknown characteristic instanceId.
|
| readCharacteristicValue(badCharId, 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.
|
| readCharacteristicValue(charId, function (result) {
|
| if (result || !chrome.runtime.lastError) {
|
| - chrome.test.fail('readCharacteristicValue should have failed');
|
| + chrome.test.sendMessage('readCharacteristicValue should have failed');
|
| }
|
|
|
| // 3. Call should succeed.
|
| readCharacteristicValue(charId, function (result) {
|
| if (chrome.runtime.lastError) {
|
| - chrome.test.fail(chrome.runtime.lastError.message);
|
| + chrome.test.sendMessage(chrome.runtime.lastError.message);
|
| }
|
|
|
| characteristic = result;
|
|
|
| - chrome.test.sendMessage('ready', function (message) {
|
| + chrome.test.sendMessage('ready', function (reply) {
|
| chrome.test.runTests([testReadCharacteristicValue]);
|
| });
|
| });
|
| });
|
| });
|
| +
|
|
|