Change-Id: If4fdad61ff3f0aa7d4a21d9b305fa7de6efc32ff
});
var alarm, nextScheduledDate, myDate = new Date();
- myDate.setFullYear(myDate.getFullYear() - 1);
alarm = new tizen.AlarmAbsolute(myDate);
tizen.alarm.add(alarm, APPLICATION_ID);
+ sleep(60000);
nextScheduledDate = alarm.getNextScheduledDate();
assert_equals(nextScheduledDate, null, "nextScheduledDate do not returns null");
}, document.title);
function cleanAlarms() {
tizen.alarm.removeAll();
}
+
+function sleep(numberMillis) {
+ var now = new Date();
+ var exitTime = now.getTime() + numberMillis;
+ while (true) {
+ now = new Date();
+ if (now.getTime() > exitTime)
+ return;
+ }
+}
\ No newline at end of file
<test_script_entry>/opt/tct-alarm-tizen-tests/alarm/AlarmAbsolute_getNextScheduledDate_extra_argument.html</test_script_entry>
</description>
</testcase>
- <testcase component="TizenAPI/Application/Alarm" execution_type="auto" id="AlarmAbsolute_getNextScheduledDate_return_null" priority="P1" purpose="Check using getNextScheduledDate method for null return">
+ <testcase component="TizenAPI/Application/Alarm" execution_type="auto" id="AlarmAbsolute_getNextScheduledDate_return_null" onload_delay="90" priority="P1" purpose="Check using getNextScheduledDate method for null return">
<description>
<test_script_entry>/opt/tct-alarm-tizen-tests/alarm/AlarmAbsolute_getNextScheduledDate_return_null.html</test_script_entry>
</description>