Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
This commit is contained in:
parent
93e3a48004
commit
b38dea0597
25901 changed files with 9982925 additions and 369 deletions
23
gaia/shared/test/unit/mocks/mock_option_menu.js
Executable file
23
gaia/shared/test/unit/mocks/mock_option_menu.js
Executable file
|
|
@ -0,0 +1,23 @@
|
|||
'use strict';
|
||||
|
||||
function MockOptionMenu(options) {
|
||||
MockOptionMenu.calls.push(options);
|
||||
MockOptionMenu.instances.push(this);
|
||||
}
|
||||
|
||||
MockOptionMenu.prototype = {
|
||||
show: function() {
|
||||
this.show.called = true;
|
||||
}
|
||||
};
|
||||
// create an array to hold any calls to this function to test them
|
||||
MockOptionMenu.mSetup = function() {
|
||||
MockOptionMenu.calls = [];
|
||||
MockOptionMenu.instances = [];
|
||||
};
|
||||
|
||||
// destroy the array so it resets every time
|
||||
MockOptionMenu.mTeardown = function() {
|
||||
delete MockOptionMenu.calls;
|
||||
delete MockOptionMenu.instances;
|
||||
};
|
||||
Loading…
Reference in a new issue