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
42
gaia/apps/system/test/unit/mock_stack_manager.js
Executable file
42
gaia/apps/system/test/unit/mock_stack_manager.js
Executable file
|
|
@ -0,0 +1,42 @@
|
|||
'use strict';
|
||||
/* exported MockStackManager */
|
||||
|
||||
var MockStackManager = {
|
||||
mCurrent: 0,
|
||||
mStack: [],
|
||||
mOutOfstack: false,
|
||||
|
||||
init: function sm_init() {
|
||||
},
|
||||
|
||||
getCurrent: function sm_getCurrent() {
|
||||
return this.mStack[this.mCurrent];
|
||||
},
|
||||
getPrev: function sm_getPrev() {
|
||||
},
|
||||
getNext: function sm_getNext() {
|
||||
},
|
||||
|
||||
outOfStack: function sm_outOfStack() {
|
||||
return this.mOutOfStack;
|
||||
},
|
||||
|
||||
goPrev: function sm_goPrev() {
|
||||
},
|
||||
goNext: function sm_goNext() {
|
||||
},
|
||||
|
||||
commit: function() {},
|
||||
commitClose: function() {},
|
||||
|
||||
snapshot: function sm_snapshot() {
|
||||
return this.mStack.slice(0);
|
||||
},
|
||||
|
||||
get length() {
|
||||
return this.mStack.length;
|
||||
},
|
||||
get position() {
|
||||
return this.mCurrent;
|
||||
}
|
||||
};
|
||||
Loading…
Reference in a new issue