3 Copyright (c) 2013 Samsung Electronics Co., Ltd.
5 Licensed under the Apache License, Version 2.0 (the License);
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
9 http://www.apache.org/licenses/LICENSE-2.0
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
18 Krzysztof Lachacz <k.lachacz@samsung.com>
24 <title>RequestedApplicationControl_replyFailure_extra_argument</title>
25 <script type="text/javascript" src="../resources/unitcommon.js"></script>
26 <script type="text/javascript" src="support/app_common.js"></script>
31 <script type="text/javascript">
33 //==== TEST: RequestedApplicationControl_replyFailure_extra_argument
34 //==== LABEL Check if replyFailure method can be invoked with extra argument
35 //==== SPEC Tizen Web API:Application:Application:RequestedApplicationControl:replyFailure M
36 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html
38 //==== ONLOAD_DELAY 30
39 //==== TEST_CRITERIA MNAEX
41 setup({timeout: 30000});
43 var t = async_test("RequestedApplicationControl_replyFailure_extra_argument", { timeout: 30000 }),
44 appControl, replyCallback, onError;
46 setup_launch(t, TCT_APPCONTROL_APPID, function () {
47 appControl = new tizen.ApplicationControl(
48 TCT_APPCONTROL_REPLY_FAILURE_OPERATION,
52 [ new tizen.ApplicationControlData("testName", [ t.name ]) ]);
54 onError = t.step_func(function (err) {
55 assert_unreached("errorCallback called: " + err.message);
59 onsuccess: t.step_func(function () {
60 assert_unreached("onsuccess callback called");
63 onfailure: t.step_func(function () {
68 tizen.application.launchAppControl(appControl, null, null, onError, replyCallback);