Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / chrome / test / data / extensions / api_test / bluetooth_low_energy / get_removed_service / runtest.js
index bab0dba..272de5c 100644 (file)
@@ -6,7 +6,7 @@ chrome.bluetoothLowEnergy.onServiceAdded.addListener(function (result) {
   // 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);
@@ -19,7 +19,7 @@ chrome.bluetoothLowEnergy.onServiceRemoved.addListener(function (result) {
   // 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) {