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_getAppsInfo_successCallback_TypeMismatch</title>
31 <meta charset="utf-8">
32 <script type="text/javascript" src="../resources/unitcommon.js"></script>
37 <script type="text/javascript">
39 //==== TEST: ApplicationManager_getAppsInfo_successCallback_TypeMismatch
40 //==== LABEL check non-optional argument successCallback (getAppsInfo method) type conversion
41 //==== SPEC Tizen Web API:Application:Application:ApplicationManager:getAppsContext M
42 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html
43 //==== STEP check non-optional argument successCallback (getAppsInfo method) type conversion
44 //==== EXPECT an exception must be thrown when the input value cannot be converted into a proper value
45 //==== EXECUTION_TYPE auto
47 //==== TEST_CRITERIA MC
50 var i, conversionTable = getTypeConversionExceptions("functionObject");
51 for (i = 0; i < conversionTable.length; i++) {
52 assert_throws({name: conversionTable[i][1]}, function () {
53 tizen.application.getAppsInfo(conversionTable[i][0]);
54 }, "exception should be thrown");
56 }, "ApplicationManager_getAppsInfo_successCallback_TypeMismatch");