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

Unified Diff: chrome/browser/ui/webui/javascript2webui.js

Issue 7645007: WebUI Testing: async support - global mocking, deferred runs, continued run. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor comment fix. Created 9 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/ui/webui/web_ui_browsertest.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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('}');
« no previous file with comments | « no previous file | chrome/browser/ui/webui/web_ui_browsertest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698