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_findAppControl_successCallback_TypeMismatch</title>
31 <meta charset="utf-8">
32 <script type="text/javascript" src="support/unitcommon.js"></script>
33 <script type="text/javascript" src="support/app_common.js"></script>
38 <script type="text/javascript">
40 //==== TEST: ApplicationManager_findAppControl_successCallback_TypeMismatch
41 //==== LABEL Check non-optional argument successCallback (findAppControl method) type conversion
42 //==== ONLOAD_DELAY 30
43 //==== SPEC Tizen Web API:Application:Application:ApplicationManager:findAppControl M
44 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html
46 //==== TEST_CRITERIA MC
48 setup({timeout: 30000});
50 var t = async_test(document.title, {timeout: 30000}),
51 i, conversionTable = getTypeConversionExceptions("functionObject"), appControl;
53 appControl = new tizen.ApplicationControl(
54 TCT_APPCONTROL_LAUNCH_APPCONTROL_OPERATION
57 for (i = 0; i < conversionTable.length; i++) {
58 assert_throws({name: conversionTable[i][1]}, function () {
59 tizen.application.findAppControl(appControl, conversionTable[i][0]);
60 }, "exception should be thrown");
65 }, "ApplicationManager_findAppControl_successCallback_TypeMismatch");