From: zhongyuan Date: Wed, 20 Nov 2019 07:05:53 +0000 (+0800) Subject: [common][alarm][DPTIZEN-3118, fix 1 tc issue] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4a7f04fac098d3d1e40e52b261580144829b000d;p=test%2Ftct%2Fweb%2Fapi.git [common][alarm][DPTIZEN-3118, fix 1 tc issue] Change-Id: Ie3b9044f87fdae148b1b64a969531b49940d7dda --- diff --git a/common/tct-alarm-tizen-tests/alarm/AlarmAbsolute_getNextScheduledDate_return_null.html b/common/tct-alarm-tizen-tests/alarm/AlarmAbsolute_getNextScheduledDate_return_null.html index 4661a1a62..b4bd112ee 100755 --- a/common/tct-alarm-tizen-tests/alarm/AlarmAbsolute_getNextScheduledDate_return_null.html +++ b/common/tct-alarm-tizen-tests/alarm/AlarmAbsolute_getNextScheduledDate_return_null.html @@ -1,7 +1,5 @@ - - AlarmAbsolute_getNextScheduledDate_return_null @@ -40,7 +36,11 @@ Authors: //==== PRIORITY P1 //==== TEST_CRITERIA MNA MR -test(function () { +setup({timeout: 90000}); + +var t = async_test(document.title, {timeout: 90000}), alarm, nextScheduledDate, myDate = new Date(); + +t.step(function () { add_result_callback(function () { try { tizen.alarm.removeAll(); @@ -49,15 +49,14 @@ test(function () { } }); - var alarm, nextScheduledDate, myDate = new Date(); myDate.setSeconds(myDate.getSeconds() + 2); - alarm = new tizen.AlarmAbsolute(myDate); tizen.alarm.add(alarm, APPLICATION_ID); - sleep(60000); + sleep(6000); nextScheduledDate = alarm.getNextScheduledDate(); assert_equals(nextScheduledDate, null, "nextScheduledDate does not return null"); -}, document.title); + t.done(); +});