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

Unified Diff: ui/file_manager/gallery/js/background.js

Issue 817233002: Add window.IN_TEST in gallery/js/background.js. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 | « ui/file_manager/externs/gallery_foreground.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/gallery/js/background.js
diff --git a/ui/file_manager/gallery/js/background.js b/ui/file_manager/gallery/js/background.js
index 3463f836145bbbf493a17b91de99a4d2c8a45c55..e65a737050bfcf4a9fde155d4aa189cf8666e314 100644
--- a/ui/file_manager/gallery/js/background.js
+++ b/ui/file_manager/gallery/js/background.js
@@ -222,6 +222,10 @@ if (chrome.app.runtime) {
// If is is run in the browser test, wait for the test resources are installed
// as a component extension, and then load the test resources.
if (chrome.test) {
+ // Sets a global flag that we are in tests, so other components are aware of
+ // it.
+ window.IN_TEST = true;
+
/** @type {string} */
window.testExtensionId = 'ejhcmmdhhpdhhgmifplfmjobgegbibkn';
chrome.runtime.onMessageExternal.addListener(function(message) {
« no previous file with comments | « ui/file_manager/externs/gallery_foreground.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698