Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

Commit

Permalink
Workaround for a crash on Android
Browse files Browse the repository at this point in the history
See #563.
  • Loading branch information
vjrantal committed Feb 23, 2016
1 parent 43c2e85 commit 1da7827
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions test/www/jxcore/UnitTest_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,12 @@ if (typeof Mobile === 'undefined') {

var testUtils = require('./lib/testUtils');

testUtils.toggleRadios(true)
.then(function () {
Mobile('GetDeviceName').callNative(function (name) {
console.log('My device name is: %s', name);
testUtils.setName(name);
require('./runTests.js');
});
})
.catch(function (error) {
console.log('Something went wrong: ' + error);
testUtils.toggleRadios(true);

Mobile('GetDeviceName').callNative(function (name) {
console.log('My device name is: %s', name);
testUtils.setName(name);
require('./runTests.js');
});

console.log('Unit Test app is loaded');

0 comments on commit 1da7827

Please sign in to comment.