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

Unified Diff: chrome/browser/resources/file_manager/js/mock_chrome.js

Issue 12230013: Files.app: add mock namespaces and constructors to mock_chrome.js for test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/file_manager/js/mock_chrome.js
diff --git a/chrome/browser/resources/file_manager/js/mock_chrome.js b/chrome/browser/resources/file_manager/js/mock_chrome.js
index acde878188ccd04b6e783b88a9f391fb6e384158..0109ded9b30cd431e47b33134b3f4253d0c97584 100644
--- a/chrome/browser/resources/file_manager/js/mock_chrome.js
+++ b/chrome/browser/resources/file_manager/js/mock_chrome.js
@@ -47,6 +47,11 @@ function cloneShallow(object) {
}
/**
+ * Mock for |chrome| namespace.
+ */
+var chrome = {};
+
+/**
* Mock out the chrome.fileBrowserPrivate API for use in the harness.
*/
chrome.fileBrowserPrivate = {
@@ -897,3 +902,24 @@ chrome.mediaPlayerPrivate = {
this.onVideoLaunched.notify();
}
};
+
+/**
+ * Mock for |v8Intl| namespace.
+ */
+var v8Intl = {};
mtomasz 2013/02/14 05:26:24 Why do we mock this? It is always available on chr
yoshiki 2013/02/14 06:20:28 It needs to compile with closure compiler, but not
+
+/**
+ * Mock constructor of |v8Intl.Collator|.
+ * @constructor
+ * @param {Array<*>} locales //TODO(JSDOC).
+ * @param {Object.<*, *>} options //TODO(JSDOC).
+ */
+v8Intl.Collator = function(locales, options) {};
+
+/**
+ * Mock constructor of |v8Intl.DateTimeFormat|.
+ * @constructor
+ * @param {Array<*>} locales //TODO(JSDOC).
+ * @param {Object.<*, *>} options //TODO(JSDOC).
+ */
+v8Intl.DateTimeFormat = function(locales, options) {};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698