Index: chrome/test/data/webui/test_api.js |
diff --git a/chrome/test/data/webui/test_api.js b/chrome/test/data/webui/test_api.js |
index 27d94f85d4d4f62ccc138496f5422ab62884146c..1058a2698cd36da60b7ecc5f293fb1843605591d 100644 |
--- a/chrome/test/data/webui/test_api.js |
+++ b/chrome/test/data/webui/test_api.js |
@@ -5,16 +5,6 @@ |
// Library providing basic test framework functionality. |
(function() { |
- // Indicates a pass to the C++ backend. |
- function pass() { |
- chrome.send('Pass', []); |
- } |
- |
- // Indicates a fail to the C++ backend. |
- function fail(message) { |
- chrome.send('Fail', [String(message)]); |
- } |
- |
// Asserts. |
// Use the following assertions to verify a condition within a test. |
// If assertion fails, the C++ backend will be immediately notified. |
@@ -66,14 +56,10 @@ |
} catch (e) { |
console.log( |
'Failed: ' + currentTest.name + '\nwith exception: ' + e.message); |
- |
- fail(e.message); |
- return; |
+ return [false, e.message] ; |
} |
- |
- // All tests passed. |
- pass(''); |
+ return [true]; |
} |
// Exports. |