| Index: chrome/browser/ui/webui/javascript2webui.js
|
| diff --git a/chrome/browser/ui/webui/javascript2webui.js b/chrome/browser/ui/webui/javascript2webui.js
|
| index b0fc9bdc3ca6f866ac6c0051f39062eea67da5db..e39fa5e007fba671c9a33486e53990e5766940fe 100644
|
| --- a/chrome/browser/ui/webui/javascript2webui.js
|
| +++ b/chrome/browser/ui/webui/javascript2webui.js
|
| @@ -32,6 +32,7 @@ function TEST_F(testFixture, testFunction, testBody) {
|
| var testGenPreamble = this[testFixture].prototype.testGenPreamble;
|
| var testGenPostamble = this[testFixture].prototype.testGenPostamble;
|
| var typedefCppFixture = this[testFixture].prototype.typedefCppFixture;
|
| + var isAsync = this[testFixture].prototype.isAsync;
|
|
|
| if (typedefCppFixture && !(testFixture in typedeffedCppFixtures)) {
|
| print('typedef ' + typedefCppFixture + ' ' + testFixture + ';');
|
| @@ -51,8 +52,9 @@ function TEST_F(testFixture, testFunction, testBody) {
|
| ' FILE_PATH_LITERAL("' + browsePrintPreload + '"))),\n' +
|
| ' "' + testFixture + '", "' + testFunction + '");');
|
| }
|
| - print(' ASSERT_TRUE(RunJavascriptTestF("' + testFixture + '", "' +
|
| - testFunction + '"));');
|
| + print(' ASSERT_TRUE(RunJavascriptTestF(' + isAsync + ', ' +
|
| + '"' + testFixture + '", ' +
|
| + '"' + testFunction + '"));');
|
| if (testGenPostamble)
|
| testGenPostamble(testFixture, testFunction);
|
| print('}');
|
|
|