mirror of
https://github.com/apache/cordova-plugin-camera.git
synced 2026-04-10 00:00:10 +08:00
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:
+2
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user