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
35
gaia/tests/jsmarionette/runner/mozilla-profile-builder/test/options/apps.js
Executable file
35
gaia/tests/jsmarionette/runner/mozilla-profile-builder/test/options/apps.js
Executable file
|
|
@ -0,0 +1,35 @@
|
|||
/* global assert */
|
||||
'use strict';
|
||||
|
||||
var baseProfile = __dirname + '/../fixtures/b2g-profile',
|
||||
apps = require('../../lib/options/apps'),
|
||||
createProfile = require('../../lib/createprofile');
|
||||
|
||||
suite('apps', function() {
|
||||
suite('app installation', function() {
|
||||
var options = {
|
||||
apps: {
|
||||
'testa.com': __dirname + '/../fixtures/test-app-a/',
|
||||
'testb.com': __dirname + '/../fixtures/test-app-b/'
|
||||
}
|
||||
};
|
||||
|
||||
var profile;
|
||||
setup(function(done) {
|
||||
createProfile.baseProfile(baseProfile, function(err, _profile) {
|
||||
if (err) return done(err);
|
||||
profile = _profile;
|
||||
apps(profile, options, done);
|
||||
});
|
||||
});
|
||||
|
||||
test('both apps are in primary manifest', function() {
|
||||
var installedApps = require(profile + '/webapps/webapps.json');
|
||||
|
||||
assert.ok(installedApps['testa.com'], 'testa.com');
|
||||
assert.ok(installedApps['testb.com'], 'testb.com');
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Loading…
Reference in a new issue