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:
OverSu 2026-09-30 23:13:03 +02:00
commit b38dea0597
25901 changed files with 9982925 additions and 369 deletions

View file

@ -0,0 +1,17 @@
{
"extends": "../../../../.jshintrc",
"predef": [
"assert",
"suite",
"test",
"setup",
"teardown",
"suiteSetup",
"suiteTeardown",
"require",
"requireApp",
"sinon",
"mocha",
"loadBodyHTML"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

View file

@ -0,0 +1,58 @@
'use strict';
var MocksHelper = function(mocks) {
this.mocks = mocks;
this.realWindowObjects = {};
};
MocksHelper.prototype = {
init: function mh_init() {
this.mocks.forEach(function(objName) {
if (! window[objName]) {
window[objName] = null;
}
});
},
setup: function mh_setup() {
this._forEachMock('mSetup');
},
suiteSetup: function mh_suiteSetup() {
this.mocks.forEach(function(objName) {
var mockName = 'Mock' + objName;
if (!window[mockName]) {
var errMsg = 'Mock ' + mockName + ' has not been loaded into the test';
throw new Error(errMsg);
}
this.realWindowObjects[objName] = window[objName];
window[objName] = window[mockName];
}, this);
this._forEachMock('mSuiteSetup');
},
suiteTeardown: function mh_suiteTeardown() {
this._forEachMock('mSuiteTeardown');
this.mocks.forEach(function(objName) {
window[objName] = this.realWindowObjects[objName];
}, this);
},
teardown: function mh_teardown() {
this._forEachMock('mTeardown');
},
_forEachMock: function mh_forEachMock(funcName) {
this.mocks.forEach(function(objName) {
var mockName = 'Mock' + objName;
var mock = window[mockName];
if (mock[funcName]) {
mock[funcName]();
}
});
}
};

View file

@ -0,0 +1,6 @@
'use strict';
require('/shared/test/unit/mocks/elements/custom_elements_helper.js');
require('/shared/test/unit/mocks/mocks_helper.js');
require('/shared/test/unit/load_body_html_helper.js');