From: Tan.Shiyou Date: Tue, 4 Jun 2013 14:48:29 +0000 (+0800) Subject: Repaired clipboard case for behavior X-Git-Tag: 2.2.1_release~285^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5fa26c5d13a22513a9aeae156e6e48e1cf07ca43;p=test%2Ftct%2Fweb%2Fbehavior.git Repaired clipboard case for behavior Signed-off-by: Tan.Shiyou --- diff --git a/tests/Clipboard/Clipboard.html b/tests/Clipboard/Clipboard.html index 14f5cd7..3b3286d 100755 --- a/tests/Clipboard/Clipboard.html +++ b/tests/Clipboard/Clipboard.html @@ -47,10 +47,11 @@ Authors:
    -
  • Clipboard Install
  • -
  • Install
  • -
  • Clipboard Application Launch
  • -
  • Launch
  • +
  • Clipboard Install
  • +
  • +
    Install
    +
    Launch
    +
@@ -63,10 +64,12 @@ Authors:
diff --git a/tests/Clipboard/js/main.js b/tests/Clipboard/js/main.js index 4e85a22..32d5648 100644 --- a/tests/Clipboard/js/main.js +++ b/tests/Clipboard/js/main.js @@ -47,6 +47,7 @@ $(document).delegate("#main", "pageinit", function() { var packageEventCallback = { oninstalled: function(packageInfo) { + hideProcess(); alert("The package " + packageInfo.name + " is installed"); flag = true; }, @@ -85,10 +86,12 @@ function install(url) { onprogress: function(packageId, percentage) { console.log("On installation(" + packageId + "): progress(" + percentage + ")"); + showProcess(); }, oncomplete: function(packageId) { console.log("Installation(" + packageId + ") Complete"); + hideProcess(); } } @@ -152,3 +155,21 @@ function packagePre() { }, "rw" ); } + +function hideProcess() { + $.mobile.loading('hide'); + $("#popup_info-screen").addClass("ui-screen-hidden"); + $("#popup_info-screen").removeClass("in"); +} + +function showProcess() { + $.mobile.loading('show', { + text: 'Install...', + textVisible: false, + theme: 'a', + textonly: false, + html: "" + }); + $("#popup_info-screen").removeClass("ui-screen-hidden"); + $("#popup_info-screen").addClass("in"); +} diff --git a/tests/Clipboard/res/Clipboard b/tests/Clipboard/res/Clipboard index f0a86b1..2f5de46 100644 Binary files a/tests/Clipboard/res/Clipboard and b/tests/Clipboard/res/Clipboard differ