getDescriptor(descId, function (result) {
if (chrome.runtime.lastError) {
- chrome.test.fail(chrome.runtime.lastError.message);
+ chrome.test.sendMessage(chrome.runtime.lastError.message);
}
chrome.test.assertEq(descId, result.instanceId);
chrome.test.sendMessage('ready', function (message) {
getDescriptor(descId, function (result) {
if (result || !chrome.runtime.lastError) {
- chrome.test.fail('Call to getDescriptor should have failed');
+ chrome.test.sendMessage('Call to getDescriptor should have failed');
}
chrome.test.sendMessage('ready', function (message) {