3 Copyright (c) 2014 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.
19 Witold Choinkowski <w.choinkowsk@samsung.com>
20 Ran Wang <ran22.wang@samsung.com>
25 <title>ChannelManager_getProgramList_channelInfo_TypeMismatch</title>
26 <meta charset="utf-8"/>
27 <script src="support/unitcommon.js"></script>
28 <script src="support/channel_common.js"></script>
33 //==== TEST: ChannelManager_getProgramList_channelInfo_TypeMismatch
34 //==== LABEL Check if ChannelManager::getProgramList() with invalid channelInfo argument throws an exception
36 //==== ONLOAD_DELAY 90
37 //==== SPEC Tizen Web API:Tizen Specification:TVChannel:ChannelManager:getProgramList M
38 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/tv-channel.html
39 //==== TEST_CRITERIA MC
41 setup({timeout: 90000});
43 var t = async_test(document.title, {timeout: 90000}), args, conversion, successCallback, errorCallback, windowCallback, windowErrorCallback;
46 successCallback = t.step_func(function () {
47 assert_unreached("Method with given incorrect argument successCallback should not be called");
50 errorCallback = t.step_func(function (e) {
51 assert_unreached("Method with given incorrect argument errorCallback should not be called. Error message:" + e.message);
54 conversion = getTypeConversionExceptions("object", false);
55 args = [null, tizen.time.getCurrentDateTime(), successCallback, errorCallback];
57 windowCallback = function (windowRect, type) {
58 checkMethodTypeMismatch(tizen.tvchannel, "getProgramList", args, conversion, 0);
62 windowErrorCallback = function (error) {
63 assert_unreached("window.show() error callback: name:" + error.name + ", msg:" + error.message);
66 tizen.tvwindow.show(windowCallback, windowErrorCallback, ["0", "0", "10%", "10%"], "MAIN");