Commit 49c0f7de authored by yoshiki@chromium.org's avatar yoshiki@chromium.org

Files.app: add mock namespaces and constructors to mock_chrome.js for test.

BUG=175657
TEST=mock Files.app works.
TBR=mtomasz@chromium.org

Review URL: https://codereview.chromium.org/12230013

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182235 0039d316-1c4b-4281-b951-d872f2087c98
parent 74c0d1cf
...@@ -46,6 +46,11 @@ function cloneShallow(object) { ...@@ -46,6 +46,11 @@ function cloneShallow(object) {
return clone; return clone;
} }
/**
* Mock for |chrome| namespace.
*/
var chrome = {};
/** /**
* Mock out the chrome.fileBrowserPrivate API for use in the harness. * Mock out the chrome.fileBrowserPrivate API for use in the harness.
*/ */
...@@ -897,3 +902,24 @@ chrome.mediaPlayerPrivate = { ...@@ -897,3 +902,24 @@ chrome.mediaPlayerPrivate = {
this.onVideoLaunched.notify(); this.onVideoLaunched.notify();
} }
}; };
/**
* Mock for |v8Intl| namespace.
*/
var v8Intl = {};
/**
* 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) {};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment