5 Copyright (c) 2013 Samsung Electronics Co., Ltd.
7 Licensed under the Apache License, Version 2.0 (the License);
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
11 http://www.apache.org/licenses/LICENSE-2.0
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
22 Mariusz Polasinski <m.polasinski@samsung.com>
30 <title>ApplicationManager_launchAppControl_with_successCallback</title>
31 <meta charset="utf-8">
32 <script type="text/javascript" src="../resources/testharness.js"></script>
33 <script type="text/javascript" src="../resources/testharnessreport.js"></script>
34 <script type="text/javascript" src="support/app_common.js"></script>
39 <script type="text/javascript">
41 //==== TEST: ApplicationManager_launchAppControl_with_successCallback
42 //==== LABEL check using launchAppControl method (with optional argument successCallback) in ApplicationManager interface
43 //==== SPEC Tizen Web API:Application:Application:ApplicationManager:launchAppControl M
44 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html
46 //==== ONLOAD_DELAY 30
47 //==== TEST_CRITERIA MOA MAST MR
49 setup({timeout: 30000});
51 var this_test = async_test("ApplicationManager_launchAppControl_with_successCallback", { timeout : 30000 }),
52 launchSuccess, appcontrol, retVal = null;
54 setup_launch(this_test, TCT_APPCONTROL_APPID, function () {
55 launchSuccess = this_test.step_func(function () {
56 assert_equals(retVal, undefined, "incorrect returned value");
57 assert_launch(this_test, TCT_APPCONTROL_APPID, function () {
62 appcontrol = new tizen.ApplicationControl(
63 TCT_APPCONTROL_LAUNCH_APPCONTROL_OPERATION
66 retVal = tizen.application.launchAppControl(appcontrol, null, launchSuccess);