From 8270649d1b33ef0b8cbc80eac231897cc008af0b Mon Sep 17 00:00:00 2001 From: Priyansh Shah Date: Thu, 4 Apr 2013 16:39:36 -0400 Subject: [PATCH] Fix manual functional test for blackberry.invoke file to pass all tests --- test/functional/manual/blackberry.invoke.js | 16 +++++++--------- test/test-app/config.xml | 16 ++++++++-------- 2 files changed, 15 insertions(+), 17 deletions(-) diff --git a/test/functional/manual/blackberry.invoke.js b/test/functional/manual/blackberry.invoke.js index 1e756223..18869b69 100644 --- a/test/functional/manual/blackberry.invoke.js +++ b/test/functional/manual/blackberry.invoke.js @@ -17,7 +17,7 @@ var onSuccess, onError, onSuccessFlag, onErrorFlag, - delay = 750; + delay = 950; describe("blackberry.invoke", function () { beforeEach(function () { @@ -93,9 +93,9 @@ describe("blackberry.invoke", function () { }); describe("Cards", function () { - var request = { - target: "net.rim.webworks.invoke.invoke.card.type", - }, + var request = { + target: "com.webworks.test.functional.invoke.card.target" + }, onChildCardClosed, onChildCardStartPeek, onChildCardEndPeek, @@ -120,7 +120,7 @@ describe("blackberry.invoke", function () { confirm = null; }); - it('invoke should invoke card', function () { + it('invoke should invoke card', function () { try { blackberry.invoke.invoke(request, onSuccess, onError); } catch (e) { @@ -145,8 +145,7 @@ describe("blackberry.invoke", function () { }); it('invoke should not invoke card whith invalid target name', function () { - request.target = "net.rim.webworks.invoke.invoke.invalid.card.target"; - + request.target = "com.webworks.test.functional.invoke.invalid.card.target"; try { blackberry.invoke.invoke(request, onSuccess, onError); } catch (e) { @@ -166,8 +165,7 @@ describe("blackberry.invoke", function () { }); it('invoke should be able to call closeChildCard after successfully invoking a card', function () { - request.target = "net.rim.webworks.invoke.invoke.card.type"; - + request.target = "com.webworks.test.functional.invoke.card.target"; alert("This test will invoke card and close it without user interaction."); try { diff --git a/test/test-app/config.xml b/test/test-app/config.xml index 547b33c2..30262781 100644 --- a/test/test-app/config.xml +++ b/test/test-app/config.xml @@ -141,14 +141,6 @@ - - card.previewer - - bb.action.WWTEST - text/plain - - - APPLICATION @@ -166,6 +158,14 @@ + + card.previewer + + bb.action.WWTEST + text/plain + + + access_shared