<!DOCTYPE html>
-
<!--
-
Copyright (c) 2013 Samsung Electronics Co., Ltd.
Licensed under the Apache License, Version 2.0 (the License);
limitations under the License.
-
Authors:
Tomasz Kusmierz <t.kusmierz@samsung.com>
-->
-
<html>
<head>
<title>AlarmAbsolute_getNextScheduledDate_return_null</title>
//==== 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();
}
});
- 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();
+});
</script>
</body>