| 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;
|
|
|