Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8140)

Unified Diff: chrome/test/data/webui/test_api.js

Issue 8416049: Expect should still fail for non-asynchronous tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 24f0adb42477975c5b1001cd3f3569319822a167..140efe7d4b5d9c1743d9ac1f96e095b6b39ba325 100644
--- a/chrome/test/data/webui/test_api.js
+++ b/chrome/test/data/webui/test_api.js
@@ -767,7 +767,10 @@ var testing = {};
if (testBody != RUN_TEST_F) {
console.log('Running test ' + testName);
}
- var result = runTestFunction(testFunction, testBody, testArguments, true);
+
+ // Async allow expect errors, but not assert errors.
+ var result = runTestFunction(testFunction, testBody, testArguments,
+ isAsync);
if (!isAsync || !result[0])
testDone(result);
return true;
« chrome/test/data/webui/assertions.js ('K') | « chrome/test/data/webui/assertions.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698