cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [09/11] git commit: CB-7433 Fixes manual tests failure on windows
Date Fri, 05 Sep 2014 18:09:04 GMT
CB-7433 Fixes manual tests failure on windows


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/commit/5c139405
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/tree/5c139405
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/diff/5c139405

Branch: refs/heads/master
Commit: 5c1394058c558ae6e52016cefbdf2d19731432f9
Parents: 6dcfa9c
Author: Vladimir Kotikov <v-vlkoti@microsoft.com>
Authored: Sat Aug 30 01:20:41 2014 +0400
Committer: Anis Kadri <anis@apache.org>
Committed: Fri Sep 5 11:08:15 2014 -0700

----------------------------------------------------------------------
 tests/tests.js | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/blob/5c139405/tests/tests.js
----------------------------------------------------------------------
diff --git a/tests/tests.js b/tests/tests.js
index 48d5ff5..efe424b 100644
--- a/tests/tests.js
+++ b/tests/tests.js
@@ -429,7 +429,16 @@ exports.defineManualTests = function (contentEl, createActionButton)
{
             '</p><div id="remove"></div>' +
             'Expected result: Remove image from library.<br>Status box will show "FileEntry.remove
success:["OK"]';
 
-    contentEl.innerHTML = info_div + options_div + getpicture_div + test_procedure + inputs_div
+ actions_div;
+    // We need to wrap this code due to Windows security restrictions
+    // see http://msdn.microsoft.com/en-us/library/windows/apps/hh465380.aspx#differences
for details
+    if (MSApp && MSApp.execUnsafeLocalFunction) {
+        MSApp.execUnsafeLocalFunction(function() {
+            contentEl.innerHTML = info_div + options_div + getpicture_div + test_procedure
+ inputs_div + actions_div;
+        });
+    } else {
+        contentEl.innerHTML = info_div + options_div + getpicture_div + test_procedure +
inputs_div + actions_div;
+    }
+
     var elements = document.getElementsByClassName("testInputTag");
     var listener = function (e) {
         testInputTag(e.target);


Mime
View raw message