VulpesOS/gaia/apps/system/test/unit/mock_stack_manager.js
OverSu b38dea0597 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.
2026-09-30 23:13:03 +02:00

42 lines
715 B
JavaScript
Executable file

'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;
}
};