| Index: chrome/test/data/extensions/api_test/bluetooth_low_energy/get_characteristic/runtest.js
|
| diff --git a/chrome/test/data/extensions/api_test/bluetooth_low_energy/get_characteristic/runtest.js b/chrome/test/data/extensions/api_test/bluetooth_low_energy/get_characteristic/runtest.js
|
| index be2cd4584ece08733d12485237eff676f537d87f..d21376fb5213c1ce5e5a6c208e7008324462d4da 100644
|
| --- a/chrome/test/data/extensions/api_test/bluetooth_low_energy/get_characteristic/runtest.js
|
| +++ b/chrome/test/data/extensions/api_test/bluetooth_low_energy/get_characteristic/runtest.js
|
| @@ -41,32 +41,33 @@ var characteristic = null;
|
| // 1. Unknown characteristic instanceId.
|
| chrome.bluetoothLowEnergy.getCharacteristic(badCharId, function (result) {
|
| if (result || !chrome.runtime.lastError) {
|
| - chrome.test.fail('getCharacteristics should have failed');
|
| + chrome.test.sendMessage('getCharacteristics should have failed');
|
| }
|
|
|
| // 2. Known characteristic instanceId, but the mapped device is unknown.
|
| chrome.bluetoothLowEnergy.getCharacteristic(charId, function (result) {
|
| if (result || !chrome.runtime.lastError) {
|
| - chrome.test.fail('getCharacteristics should have failed');
|
| + chrome.test.sendMessage('getCharacteristics should have failed');
|
| }
|
|
|
| // 3. Known characteristic instanceId, but the mapped service is unknown.
|
| chrome.bluetoothLowEnergy.getCharacteristic(charId, function (result) {
|
| if (result || !chrome.runtime.lastError) {
|
| - chrome.test.fail('getCharacteristics should have failed');
|
| + chrome.test.sendMessage('getCharacteristics should have failed');
|
| }
|
|
|
| // 4. Known characteristic instanceId, but the mapped service does not
|
| // know about the characteristic.
|
| chrome.bluetoothLowEnergy.getCharacteristic(charId, function (result) {
|
| if (result || !chrome.runtime.lastError) {
|
| - chrome.test.fail('getCharacteristics should have failed');
|
| + chrome.test.sendMessage('getCharacteristics should have failed');
|
| }
|
|
|
| // 5. Success.
|
| chrome.bluetoothLowEnergy.getCharacteristic(charId, function (result) {
|
| if (chrome.runtime.lastError) {
|
| - chrome.test.fail(chrome.runtime.lastError.message);
|
| + chrome.test.sendMessage("Unexpected error: "
|
| + + chrome.runtime.lastError.message);
|
| }
|
|
|
| characteristic = result;
|
|
|