Chromium Code Reviews| 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) {}; |