From da489d783611e19f2b454a8949b41ffcbaa7a077 Mon Sep 17 00:00:00 2001 From: "hjnim.kim" Date: Mon, 21 Jan 2013 13:49:22 +0900 Subject: [PATCH] UnitTC: swipe unit tc has been fixed swipe unit tc has been fixed ( cause event name has been changed ) Change-Id: I08a7b2dd5959d91f6caa13718aecdaf4020d3336 --- tests/unit-tests/swipe/swipe-tests.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/unit-tests/swipe/swipe-tests.js b/tests/unit-tests/swipe/swipe-tests.js index 9b697ef..861164a 100644 --- a/tests/unit-tests/swipe/swipe-tests.js +++ b/tests/unit-tests/swipe/swipe-tests.js @@ -15,16 +15,16 @@ 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(); -- 2.7.4