CB-10865 Run ios native tests on Travis

Updated cordova-ios tests dependency version to latest published
Changed the tests to reflect the current scaling behavior
Fixed a typo in manual test img.onloadend -> img.onload
This commit is contained in:
daserge
2016-03-21 12:54:07 +03:00
parent 0cd962466d
commit fb871d40e2
4 changed files with 20 additions and 12 deletions
+2 -1
View File
@@ -125,7 +125,8 @@ exports.defineManualTests = function (contentEl, createActionButton) {
var img = document.getElementById('camera_image');
var startTime = new Date();
img.src = url;
img.onloadend = function () {
img.onload = function () {
log('Img size: ' + img.naturalWidth + 'x' + img.naturalHeight);
log('Image tag load time: ' + (new Date() - startTime));
if (callback) {
callback();