Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
26 lines
873 B
JavaScript
Executable file
26 lines
873 B
JavaScript
Executable file
'use strict';
|
|
|
|
var path = require('path');
|
|
var helper = require('./helper');
|
|
|
|
suite('MOZILLA_OFFICAL=1', function() {
|
|
suiteSetup(helper.cleanupWorkspace);
|
|
teardown(helper.cleanupWorkspace);
|
|
|
|
test('make with MOZILLA_OFFICIAL=1', function(done) {
|
|
helper.exec('MOZILLA_OFFICIAL=1 make', function(error, stdout, stderr) {
|
|
helper.checkError(error, stdout, stderr);
|
|
|
|
// path in zip for unofficial branding
|
|
var pathInZip = 'shared/resources/branding/initlogo.png';
|
|
// zip path for system app
|
|
var zipPath = path.join(process.cwd(), 'profile', 'webapps',
|
|
'system.gaiamobile.org', 'application.zip');
|
|
var expectedBrandingPath = path.join(process.cwd(),
|
|
'shared', 'resources', 'branding', 'official', 'initlogo.png');
|
|
|
|
helper.checkFileInZip(zipPath, pathInZip, expectedBrandingPath);
|
|
done();
|
|
});
|
|
});
|
|
});
|