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

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

Issue 7087014: Support automatic javascript test registry in gtest when creating WebUI tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move the include of the generated dir to the condition for ! 'arm'. Created 9 years, 6 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 | « chrome/chrome_tests.gypi ('k') | chrome/test/data/webui/sample_pass.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f992fe042fb9849f9e0c6b99cac378cf63091e9e..f14d3874c38b64ea50c5a6c65dfbb1dd9e76a23a 100644
--- a/chrome/test/data/webui/print_preview.js
+++ b/chrome/test/data/webui/print_preview.js
@@ -72,7 +72,8 @@
assertTrue(cancelButton != null);
};
- registerCallbacks();
+ if ('window' in this && 'registerCallbacks' in window)
+ registerCallbacks();
internal = {
'verifyBasicPrintPreviewButtons': verifyBasicPrintPreviewButtons,
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/data/webui/sample_pass.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698