You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by bh...@apache.org on 2014/07/21 21:50:23 UTC

[2/4] git commit: CB-7167 [BlackBerry10] Fix tests detection of blob support (window.Blob is BlobConstructor object)

CB-7167 [BlackBerry10] Fix tests detection of blob support (window.Blob is BlobConstructor object)


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

Branch: refs/heads/master
Commit: d1ab0d9df8c0b717ff50bb1de9b27c8ae3781f09
Parents: 75fcc92
Author: Bryan Higgins <bh...@blackberry.com>
Authored: Fri Jul 18 11:27:19 2014 -0400
Committer: Bryan Higgins <bh...@blackberry.com>
Committed: Fri Jul 18 14:16:45 2014 -0400

----------------------------------------------------------------------
 tests/tests.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/d1ab0d9d/tests/tests.js
----------------------------------------------------------------------
diff --git a/tests/tests.js b/tests/tests.js
index 76c8a90..2f0178b 100644
--- a/tests/tests.js
+++ b/tests/tests.js
@@ -2408,7 +2408,7 @@ exports.defineAutoTests = function () {
             });
             it("file.spec.105 should be able to write binary data from a Blob", function (done) {
                 // Skip test if Blobs are not supported (e.g.: Android 2.3).
-                if ((typeof window.Blob != 'function' && typeof window.WebKitBlobBuilder == 'undefined') || typeof window.ArrayBuffer == 'undefined') {
+                if ((typeof window.Blob == 'undefined' && typeof window.WebKitBlobBuilder == 'undefined') || typeof window.ArrayBuffer == 'undefined') {
                     expect(true).toFailWithMessage('Platform does not supported this feature');
                     done();
                     return;
@@ -2544,7 +2544,7 @@ exports.defineAutoTests = function () {
             });
             it("file.spec.108 should be able to write binary data from a File", function (done) {
                 // Skip test if Blobs are not supported (e.g.: Android 2.3).
-                if (typeof window.Blob != 'function' && typeof window.WebKitBlobBuilder == 'undefined') {
+                if (typeof window.Blob == 'undefined' && typeof window.WebKitBlobBuilder == 'undefined') {
                     expect(true).toFailWithMessage('Platform does not supported this feature');
                     done();
                 }