UnitTC: swipe unit tc has been fixed
authorhjnim.kim <hjnim.kim@samsung.com>
Mon, 21 Jan 2013 04:49:22 +0000 (13:49 +0900)
committerYoumin Ha <youmin.ha@samsung.com>
Tue, 22 Jan 2013 05:24:46 +0000 (14:24 +0900)
swipe unit tc has been fixed ( cause event name has been changed )

Change-Id: I08a7b2dd5959d91f6caa13718aecdaf4020d3336

tests/unit-tests/swipe/swipe-tests.js

index 9b697ef..861164a 100644 (file)
                        coverStart,
                        item,
                        slideLeftDone = function () {
-                               ok(true, "Animation Complete - sliding left");
-                               cover.unbind("animationComplete");
+                               ok(true, "Animation end - sliding left");
+                               cover.unbind("animationend");
                                equal(cover.position().left, coverStart, "Position - Cover");
                                start();
                        },
                        slideRightDone = function () {
-                               ok(true, "Animation Complete - sliding right");
+                               ok(true, "Animation end - sliding right");
                                setTimeout(function () {
-                                       cover.unbind("animationComplete");
-                                       cover.bind("animationComplete", slideLeftDone);
+                                       cover.unbind("animationend");
+                                       cover.bind("animationend", slideLeftDone);
                                        item.trigger("swipeleft");
                                }, 0);
                        };
@@ -39,7 +39,7 @@
                coverStart = cover.position().left;
                item = swipe.find("div.ui-swipe-item").first();
 
-               cover.bind("animationComplete", slideRightDone);
+               cover.bind("animationend", slideRightDone);
                cover.trigger("swiperight");
                stop();