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

Unified Diff: chrome/test/data/webui/print_preview.js

Issue 8586009: Allow WebUI Tests to use preLoad in HtmlDialogUI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reduce GEN(' ') (indentations) by moving code to .cc and .h file(s). Created 9 years, 1 month 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
Index: chrome/test/data/webui/print_preview.js
diff --git a/chrome/test/data/webui/print_preview.js b/chrome/test/data/webui/print_preview.js
index 530211e3c3f1675557747e0d55da281fed81717f..690dfc159e780f3fdb2a3cf94f33428bf288ccdb 100644
--- a/chrome/test/data/webui/print_preview.js
+++ b/chrome/test/data/webui/print_preview.js
@@ -163,21 +163,7 @@ PrintPreviewWebUITest.prototype = {
},
};
-GEN('#include "base/command_line.h"');
-GEN('#include "chrome/browser/ui/webui/web_ui_browsertest.h"');
-GEN('#include "chrome/common/chrome_switches.h"');
-GEN('');
-GEN('class PrintPreviewWebUITest');
-GEN(' : public WebUIBrowserTest {');
-GEN(' protected:');
-GEN(' // WebUIBrowserTest override.');
-GEN(' virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE {');
-GEN(' WebUIBrowserTest::SetUpCommandLine(command_line);');
-GEN(' command_line->AppendSwitch(switches::kEnablePrintPreview);');
-GEN(' }');
-GEN('');
-GEN('};');
-GEN('');
+GEN('#include "chrome/test/data/webui/print_preview.h"');
/**
* The expected length of the |printer-list| element.

Powered by Google App Engine
This is Rietveld 408576698