You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2014/07/10 17:35:25 UTC

spec commit: android: Fix bridge test failure due to "" vs null

Repository: cordova-mobile-spec
Updated Branches:
  refs/heads/master 77ff9a37d -> d84f0a56b


android: Fix bridge test failure due to "" vs null


Project: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/commit/d84f0a56
Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/d84f0a56
Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/d84f0a56

Branch: refs/heads/master
Commit: d84f0a56b4c0827e1fc296b400e5170b98518496
Parents: 77ff9a3
Author: Andrew Grieve <ag...@chromium.org>
Authored: Thu Jul 10 11:34:57 2014 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Thu Jul 10 11:34:57 2014 -0400

----------------------------------------------------------------------
 www/autotest/tests/bridge.tests.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/d84f0a56/www/autotest/tests/bridge.tests.js
----------------------------------------------------------------------
diff --git a/www/autotest/tests/bridge.tests.js b/www/autotest/tests/bridge.tests.js
index 28c44c2..b2ae043 100644
--- a/www/autotest/tests/bridge.tests.js
+++ b/www/autotest/tests/bridge.tests.js
@@ -28,7 +28,7 @@ describe('Bridge', function() {
             ifr.onload = function() {
                 var stolenSecret = ifr.contentWindow.prompt('', 'gap_init:');
                 done = true;
-                expect(stolenSecret).toBe(null);
+                expect(!!stolenSecret).toBe(false);
             };
             document.body.appendChild(ifr);
             waitsFor(function() { return done; });