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,43 @@
require('/shared/js/format.js');
suite('Format Timer Unit Tests', function() {
/*global asyncStorage*/
'use strict';
var subject;
suiteSetup(function(done) {
requirejs([
'lib/dcf'
], function(dcf) {
subject = dcf;
done();
});
});
suite('#createDCFFilename', function() {
setup(function() {
this.sandbox = sinon.sandbox.create();
var stub = this.sandbox.stub(asyncStorage, 'getItem');
subject.init();
// Trigger the callback
stub.getCall(0).args[1]({
file: 'moz',
dir: '1'
});
});
test('=> pads the filename', function() {
var result;
var storage = {
get: function(filename) {
result = filename;
return {};
}
};
subject.createDCFFilename(storage, 'image');
assert.equal(result, 'DCIM/1MZLLA/IMG_0moz.jpg');
});
});
});