5 Copyright (c) 2016 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.
20 Xiaoyan Qian <xy.qian@samsung.com>
26 <title>ApplicationManager_findAppControl_errorCallback_invoked</title>
27 <meta charset="utf-8">
28 <script src="support/unitcommon.js"></script>
29 <script src="support/app_common.js"></script>
34 //==== TEST: ApplicationManager_findAppControl_errorCallback_invoked
35 //==== LABEL Check exception in error callback of findAppControl() method
36 //==== ONLOAD_DELAY 30
37 //==== SPEC Tizen Web API:Application:Application:ApplicationManager:findAppControl M
38 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html
40 //==== TEST_CRITERIA MERRCB
42 setup({timeout: 30000});
44 var t = async_test(document.title, {timeout: 30000}), findSuccess, findError, appControl;
47 appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/view", "invalid", "video/divx", null);
49 findSuccess = t.step_func(function (appInfos, appControl) {
50 assert_unreached("findAppControl() success callback should not be invoked");
53 findError = t.step_func(function (error) {
54 assert_equals(error.name, "NotFoundError", "NotFoundError must be thrown");
58 tizen.application.findAppControl(appControl, findSuccess, findError);