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

Unified Diff: chrome/browser/resources/print_preview/previewarea/preview_area.js

Issue 2973743002: Add plugin stub for print preview tests (Closed)
Patch Set: Update annotation Created 3 years, 5 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/test/data/webui/print_preview/plugin_stub.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/print_preview/previewarea/preview_area.js
diff --git a/chrome/browser/resources/print_preview/previewarea/preview_area.js b/chrome/browser/resources/print_preview/previewarea/preview_area.js
index 24b14be0e4da201f3eba64048f77f0880d128ebf..0e2ff3cddd471ad28cf4df0ad862347328a036a9 100644
--- a/chrome/browser/resources/print_preview/previewarea/preview_area.js
+++ b/chrome/browser/resources/print_preview/previewarea/preview_area.js
@@ -172,11 +172,6 @@ cr.define('print_preview', function() {
*/
this.openSystemDialogButton_ = null;
- /**
- * If this is in a browser test (fake plugin).
- * @private {boolean}
- */
- this.isBrowserTest_ = false;
}
/**
@@ -605,8 +600,6 @@ cr.define('print_preview', function() {
*/
onDocumentReady_: function(event) {
this.isDocumentReady_ = true;
- if (this.isBrowserTest_)
- this.isPluginReloaded_ = true;
this.dispatchPreviewGenerationDoneIfReady_();
},
@@ -675,11 +668,6 @@ cr.define('print_preview', function() {
// being draggable.
this.plugin_.style.pointerEvents = isDragging ? 'none' : 'auto';
},
-
- /** @param {boolean} isTest Whether this instance is in a browser test. */
- setIsBrowserTest: function(isTest) {
- this.isBrowserTest_ = isTest;
- }
};
// Export
« no previous file with comments | « no previous file | chrome/test/data/webui/print_preview/plugin_stub.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698