Chromium Code Reviews| Index: chrome/test/base/js2gtest.js |
| diff --git a/chrome/test/base/js2gtest.js b/chrome/test/base/js2gtest.js |
| index 9ec40a811cb06ccd5a2eca0be60cb1094c4bb111..35396d9b84b4c85fd57f6c64ffeeaa3707803f13 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$/); |
|
dmazzoni
2012/12/14 18:45:41
indentation?
aboxhall
2012/12/14 23:26:44
Ugh. Don't know how that happened. Done.
|
| var testPredicate = testShouldFail ? 'ASSERT_FALSE' : 'ASSERT_TRUE'; |
| var extraLibraries = genIncludes.concat( |
| this[testFixture].prototype.extraLibraries.map( |