| Index: chrome/test/base/js2gtest.js
|
| diff --git a/chrome/test/base/js2gtest.js b/chrome/test/base/js2gtest.js
|
| index 9ec40a811cb06ccd5a2eca0be60cb1094c4bb111..e6f9461dbf359cb2574583bde39255dc94cb869b 100644
|
| --- a/chrome/test/base/js2gtest.js
|
| +++ b/chrome/test/base/js2gtest.js
|
| @@ -152,7 +152,8 @@ function TEST_F(testFixture, testFunction, testBody) {
|
| var typedefCppFixture = this[testFixture].prototype.typedefCppFixture;
|
| var isAsyncParam = testType === 'unit' ? '' :
|
| this[testFixture].prototype.isAsync + ', ';
|
| - var testShouldFail = this[testFixture].prototype.testShouldFail;
|
| + var testShouldFail = this[testFixture].prototype.testShouldFail ||
|
| + testFunction.match(/_shouldFail$/);
|
| var testPredicate = testShouldFail ? 'ASSERT_FALSE' : 'ASSERT_TRUE';
|
| var extraLibraries = genIncludes.concat(
|
| this[testFixture].prototype.extraLibraries.map(
|
|
|