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, |