2 * Copyright (c) 2013 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.
18 * @author Karol Pawlowski (k.pawlowski@samsung.com)
19 * @author Tomasz Iwanek (t.iwanek@samsung.com)
21 * @brief Background page installation test's bodies
25 #include <dpl/test/test_runner.h>
26 #include <InstallerWrapper.h>
28 using namespace InstallerWrapper;
30 ////////////////////////////////////////////////////////////////////////////////
32 RUNNER_TEST_GROUP_INIT(BackgroundPage)
35 Name: widgetWithBackgroundPage
36 Description: Tests if widget with background page is installed correctly
37 Expected: widget should be installed correctly
39 RUNNER_TEST(widgetWithBackgroundPage)
42 RUNNER_ASSERT(install(miscWidgetsStuff + "widgets/bg-00-with_bg.wgt",
43 tizenId) == InstallerWrapper::Success);
48 Name: missingBackgroundFile
49 Description: Tests if widget with declared in conifg background page
50 but missing background file will be installed correctly.
51 Expected: widget should NOT be installed
53 RUNNER_TEST(missingBackgroundFile)
56 if(install(miscWidgetsStuff + "widgets/bg-01-missing_file.wgt",
57 tizenId) == InstallerWrapper::Success) {
59 RUNNER_ASSERT_MSG(false, "Invalid widget package installed");
64 Name: widgetWithoutBackgroundPage
65 Description: Complementary test to check if normal widget\
66 without background page is successfully installed
67 Expected: widget should be installed
69 RUNNER_TEST(widgetWithoutBackgroundPage)
72 RUNNER_ASSERT(install(miscWidgetsStuff + "widgets/bg-02-without_bg.wgt",
73 tizenId) == InstallerWrapper::Success);