VulpesOS/gaia/build/test/integration/mozilla_offical_test.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

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();
});
});
});