2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
23 static void startup(void);
24 static void cleanup(void);
26 void (*tet_startup)(void) = startup;
27 void (*tet_cleanup)(void) = cleanup;
29 static void utc_utilx_enable_indicator(void);
32 struct tet_testlist tet_testlist[] = {
33 { utc_utilx_enable_indicator, 1 },
34 // Do not remove below line
38 static void startup(void)
43 static void cleanup(void)
50 * @brief test case of utilx_enable_indicator()
52 static void utc_utilx_enable_indicator(void)
58 dpy = XOpenDisplay(NULL);
59 root = XDefaultRootWindow(dpy);
61 win = XCreateSimpleWindow(dpy, root, 0, 0, 480, 800, 2, BlackPixel(dpy,0), WhitePixel(dpy,0));
64 // If the win want to show indicator, enables indicator.
65 utilx_enable_indicator(dpy, win, 1);
72 dts_pass("utc_efl_util_set_notification_window_level_positive", "passed");
76 dts_fail("utc_efl_util_set_notification_window_level_positive", "failed");