// getService should return this service.
chrome.bluetoothLowEnergy.getService(result.instanceId, function (service) {
if (chrome.runtime.lastError) {
- chrome.test.fail(chrome.runtime.lastError.message);
+ chrome.test.sendMessage(chrome.runtime.lastError.message);
}
chrome.test.assertEq(result.instanceId, service.instanceId);
// getService should return error.
chrome.bluetoothLowEnergy.getService(result.instanceId, function (service) {
if (service || !chrome.runtime.lastError) {
- chrome.test.fail('Call to getService should have failed.');
+ chrome.test.sendMessage('Call to getService should have failed.');
}
chrome.test.sendMessage('getServiceFail', function (message) {