1 // (c) Copyright Juergen Hunold 2016 2 // Use, modification and distribution is subject to the Boost Software 3 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at 4 // http://www.boost.org/LICENSE_1_0.txt) 5 6 #define BOOST_TEST_MODULE QtWebEngine 7 8 #include <QtWebEngine> 9 #include <QGuiApplication> 10 11 12 #include <boost/test/unit_test.hpp> 13 BOOST_AUTO_TEST_CASE(defines)14BOOST_AUTO_TEST_CASE( defines) 15 { 16 BOOST_CHECK_EQUAL(BOOST_IS_DEFINED(QT_CORE_LIB), true); 17 BOOST_CHECK_EQUAL(BOOST_IS_DEFINED(QT_GUI_LIB), true); 18 BOOST_CHECK_EQUAL(BOOST_IS_DEFINED(QT_WEBENGINE_LIB), true); 19 } 20 21 /*! 22 Just call the global initialization function 23 */ BOOST_AUTO_TEST_CASE(webengine)24BOOST_AUTO_TEST_CASE( webengine ) 25 { 26 QGuiApplication app(boost::unit_test::framework::master_test_suite().argc, 27 boost::unit_test::framework::master_test_suite().argv); 28 29 QtWebEngine::initialize(); 30 } 31