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
37
gaia/build/test/integration/pseudolocalizations_test.js
Executable file
37
gaia/build/test/integration/pseudolocalizations_test.js
Executable file
|
|
@ -0,0 +1,37 @@
|
|||
'use strict';
|
||||
|
||||
/* jshint node: true, mocha: true */
|
||||
/* global suiteSetup */
|
||||
|
||||
var assert = require('chai').assert;
|
||||
var path = require('path');
|
||||
var AdmZip = require('adm-zip');
|
||||
var helper = require('./helper');
|
||||
|
||||
suite('buildtime pseudolocalizations', function() {
|
||||
suiteSetup(helper.cleanupWorkspace);
|
||||
teardown(helper.cleanupWorkspace);
|
||||
|
||||
test('are included by default', function(done) {
|
||||
helper.exec('make', function(error, stdout, stderr) {
|
||||
helper.checkError(error, stdout, stderr);
|
||||
var zipPath = path.join(process.cwd(), 'profile', 'webapps',
|
||||
'system.gaiamobile.org', 'application.zip');
|
||||
var zip = new AdmZip(zipPath);
|
||||
var enUSFileInZip = zip.getEntry('locales-obj/index.en-US.json');
|
||||
var psaccentPathInZip = 'locales-obj/index.fr-x-psaccent.json';
|
||||
var psaccentFileInZip = zip.getEntry(psaccentPathInZip);
|
||||
|
||||
assert.isNotNull(
|
||||
psaccentFileInZip,
|
||||
'Accented English file ' + psaccentPathInZip + ' should exist');
|
||||
assert.notDeepEqual(
|
||||
JSON.parse(zip.readAsText(psaccentFileInZip)),
|
||||
JSON.parse(zip.readAsText(enUSFileInZip)),
|
||||
'Accented English file should not be identical to regular English');
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Loading…
Reference in a new issue