This is an automated email from the ASF dual-hosted git repository.
janpio pushed a commit to branch janpio-CB-13829
in repository https://gitbox.apache.org/repos/asf/cordova-windows.git
The following commit(s) were added to refs/heads/janpio-CB-13829 by this push:
new 49272a3 more test fixes
49272a3 is described below
commit 49272a3ff46b637ceab22992f111f94156c2322d
Author: Jan Piotrowski <[email protected]>
AuthorDate: Thu Jan 25 19:21:02 2018 +0100
more test fixes
---
spec/e2e/endtoend.spec.js | 33 +++++++++++++++++++++++++++++----
1 file changed, 29 insertions(+), 4 deletions(-)
diff --git a/spec/e2e/endtoend.spec.js b/spec/e2e/endtoend.spec.js
index ec58952..4f68f82 100644
--- a/spec/e2e/endtoend.spec.js
+++ b/spec/e2e/endtoend.spec.js
@@ -141,7 +141,7 @@ describe('Cordova create and build', function () {
// "InProcessServer extension"
- it('spec.5 should build project containing plugin with InProcessServer
extension', function (done) {
+ it('spec.5a should build project containing plugin with InProcessServer
extension', function (done) {
var extensionsPluginInfo, api;
extensionsPluginInfo = new PluginInfo(extensionsPlugin);
@@ -158,9 +158,34 @@ describe('Cordova create and build', function () {
api.addPlugin(extensionsPluginInfo)
.then(function () {
shell.exec(buildScriptPath, {silent: silent});
- var packages = shell.ls(appPackagesFolder);
- expect(packages.filter(function (file) { return
file.match(/.*Phone.*\.appx.*/); }).length).toBe(1);
- expect(packages.filter(function (file) { return
file.match(/.*Windows.*\.appx.*/); }).length).toBe(1);
+
_expectSubdirAndFileExist('CordovaApp.Windows10_1.0.0.0_anycpu_debug_Test',
'CordovaApp.Windows10_1.0.0.0_anycpu_debug.appx');
+ })
+ .catch(fail)
+ .finally(function () {
+ expect(fail).not.toHaveBeenCalled();
+ done();
+ });
+ });
+
+ it('spec.5b should build project (8.1) containing plugin with
InProcessServer extension', function (done) {
+ var extensionsPluginInfo, api;
+
+ extensionsPluginInfo = new PluginInfo(extensionsPlugin);
+ api = new Api();
+ api.root = projectFolder;
+ api.locations.root = projectFolder;
+ api.locations.www = path.join(projectFolder, 'www');
+
+ var fail = jasmine.createSpy('fail')
+ .and.callFake(function (err) {
+ console.error(err);
+ });
+
+ api.addPlugin(extensionsPluginInfo)
+ .then(function () {
+ shell.exec(buildScriptPath + ' --appx=8.1', {silent: silent});
+ _expectExist(/.*Windows.*\.appxupload/);
+ _expectExist(/.*Phone.*\.appxupload/);
})
.catch(fail)
.finally(function () {
--
To stop receiving notification emails like this one, please contact
[email protected].
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]