<script>
//==== TEST: ApplicationManager_addAppStatusChangeListener_InvalidValuesError
-//==== LABEL Check if the application id parameter is an empty string will throw exception
+//==== LABEL Check if the application id parameter is an empty string will throw exception
//==== SPEC Tizen Web API:Application:Application:ApplicationManager:addAppStatusChangeListener M
//==== SPEC_URL TBD
//==== TEST_CRITERIA MC
-test(function () {
- var appEventCallback;
+setup({timeout: 300000});
+
+var t = async_test(document.title, {timeout: 300000}), statusEventCallback;
+t.step(function () {
+ statusEventCallback = t.step_func(function (appId, isActive) {
+ assert_unreached("addAppStatusChangeListener() success callback should not be invoked");
+ });
+
assert_throws(INVALID_VALUES_EXCEPTION, function () {
- tizen.application.addAppStatusChangeListener(appEventCallback, "");
+ tizen.application.addAppStatusChangeListener(statusEventCallback, "");
}, "exception should be thrown");
-
-}, document.title);
+ t.done();
+});
</script>
</body>