From eab0b46a9eff1f09b7fe601f4b915e57d25a52cd Mon Sep 17 00:00:00 2001 From: "j-h.choi" Date: Mon, 17 Jun 2013 19:51:55 +0900 Subject: [PATCH] BehaviorTC Launch API success log, PassButton(Disable/Enable) Change-Id: Icfd48ee1e92417d2cb461d9feb156bafbac697d0 --- tests/Alarm/js/main.js | 2 ++ tests/Bluetooth/js/main.js | 4 +++- tests/NFC/js/main.js | 4 +++- tests/Notification/js/main.js | 2 ++ tests/Package/js/main.js | 4 +++- tests/Push/js/main.js | 4 +++- 6 files changed, 16 insertions(+), 4 deletions(-) diff --git a/tests/Alarm/js/main.js b/tests/Alarm/js/main.js index affe93f..c7e3201 100644 --- a/tests/Alarm/js/main.js +++ b/tests/Alarm/js/main.js @@ -49,6 +49,7 @@ $(document).delegate("#main", "pageinit", function() { } catch (e) { alert("Exception: " + e.message); } + DisablePassButton(); displayAlarms(); alarmPre(); }); @@ -228,6 +229,7 @@ function install_(url) { oncomplete: function(packageId) { console.log("Installation(" + packageId + ") Complete"); + EnablePassButton(); } } diff --git a/tests/Bluetooth/js/main.js b/tests/Bluetooth/js/main.js index eaf7584..38699bf 100644 --- a/tests/Bluetooth/js/main.js +++ b/tests/Bluetooth/js/main.js @@ -34,6 +34,7 @@ $(document).delegate("#main", "pageinit", function() { } catch (e) { alert("Exception: " + e.message); } + DisablePassButton(); bluetoothChatPre(); }); @@ -102,7 +103,8 @@ function install(url) { function launch() { function onSuccess() { - console.log(id + " launched successfully!"); + console.log("Application launched successfully"); + EnablePassButton(); } function onError(err) { diff --git a/tests/NFC/js/main.js b/tests/NFC/js/main.js index fac73f1..fd1c08a 100644 --- a/tests/NFC/js/main.js +++ b/tests/NFC/js/main.js @@ -38,6 +38,7 @@ $(document).delegate("#main", "pageinit", function() { } catch (e) { alert("Exception: " + e.message); } + DisablePassButton(); contactsExchangerPre(); }); @@ -106,7 +107,8 @@ function install(url) { function launch() { function onSuccess() { - console.log(id + " launched successfully!"); + console.log("Application launched successfully"); + EnablePassButton(); } function onError(err) { diff --git a/tests/Notification/js/main.js b/tests/Notification/js/main.js index 3f2ce42..3369938 100644 --- a/tests/Notification/js/main.js +++ b/tests/Notification/js/main.js @@ -78,6 +78,7 @@ $(document).delegate("#main", "pageinit", function() { } catch (e) { alert("Exception: " + e.message); } + DisablePassButton(); notificationPre(); }); @@ -179,6 +180,7 @@ function install(url) { oncomplete: function(packageId) { console.log("Installation(" + packageId + ") Complete"); + EnablePassButton(); } } diff --git a/tests/Package/js/main.js b/tests/Package/js/main.js index 7bf1825..1d5d67c 100644 --- a/tests/Package/js/main.js +++ b/tests/Package/js/main.js @@ -44,6 +44,7 @@ $(document).delegate("#main", "pageinit", function() { } catch (e) { alert("Exception: " + e.message); } + DisablePassButton(); packagePre(); }); @@ -146,7 +147,8 @@ function uninstall() { function launch() { function onSuccess() { - console.log(id + " launched successfully!"); + console.log("Application launched successfully"); + EnablePassButton(); } function onError(err) { diff --git a/tests/Push/js/main.js b/tests/Push/js/main.js index 7be4441..6b6d5f7 100644 --- a/tests/Push/js/main.js +++ b/tests/Push/js/main.js @@ -39,6 +39,7 @@ $(document).delegate("#main", "pageinit", function() { } catch (e) { alert("Exception: " + e.message); } + DisablePassButton(); pushPre(); }); @@ -107,7 +108,8 @@ function install(url) { function launch() { function onSuccess() { - console.log(id + " launched successfully!"); + console.log("Application launched successfully"); + EnablePassButton(); } function onError(err) { -- 2.7.4