| Index: chrome/test/data/extensions/api_test/bluetooth_low_energy/get_descriptor/runtest.js
|
| diff --git a/chrome/test/data/extensions/api_test/bluetooth_low_energy/get_descriptor/runtest.js b/chrome/test/data/extensions/api_test/bluetooth_low_energy/get_descriptor/runtest.js
|
| index 49418e4926f681b302a4331bffe07574ded54c1c..17712bad3d010e7323df9a9591dc4b937c460c77 100644
|
| --- a/chrome/test/data/extensions/api_test/bluetooth_low_energy/get_descriptor/runtest.js
|
| +++ b/chrome/test/data/extensions/api_test/bluetooth_low_energy/get_descriptor/runtest.js
|
| @@ -30,39 +30,40 @@ var descriptor = null;
|
| // 1. Unknown descriptor instanceId.
|
| getDescriptor(badDescId, function (result) {
|
| if (result || !chrome.runtime.lastError) {
|
| - chrome.test.fail('getDescriptor should have failed for \'badDescId\'');
|
| + chrome.test.sendMessage('getDescriptor should have failed ' +
|
| + 'for \'badDescId\'');
|
| }
|
|
|
| // 2. Known descriptor instanceId, but the mapped device is unknown.
|
| getDescriptor(descId, function (result) {
|
| if (result || !chrome.runtime.lastError) {
|
| - chrome.test.fail('getDescriptor should have failed');
|
| + chrome.test.sendMessage('getDescriptor should have failed');
|
| }
|
|
|
| // 3. Known descriptor instanceId, but the mapped service is unknown.
|
| getDescriptor(descId, function (result) {
|
| if (result || !chrome.runtime.lastError) {
|
| - chrome.test.fail('getDescriptor should have failed');
|
| + chrome.test.sendMessage('getDescriptor should have failed');
|
| }
|
|
|
| // 4. Known descriptor instanceId, but the mapped characteristic is
|
| // unknown.
|
| getDescriptor(descId, function (result) {
|
| if (result || !chrome.runtime.lastError) {
|
| - chrome.test.fail('getDescriptor should have failed');
|
| + chrome.test.sendMessage('getDescriptor should have failed');
|
| }
|
|
|
| // 5. Known descriptor instanceId, but the mapped the characteristic
|
| // does not know about the descriptor.
|
| getDescriptor(descId, function (result) {
|
| if (result || !chrome.runtime.lastError) {
|
| - chrome.test.fail('getDescriptor should have failed');
|
| + chrome.test.sendMessage('getDescriptor should have failed');
|
| }
|
|
|
| // 6. Success.
|
| getDescriptor(descId, function (result) {
|
| if (chrome.runtime.lastError) {
|
| - chrome.test.fail(chrome.runtime.lastError.message);
|
| + chrome.test.sendMessage(chrome.runtime.lastError.message);
|
| }
|
|
|
| descriptor = result;
|
|
|