aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/QtWebEngine/web_engine_initialize.py
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2021-06-21 14:52:28 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2021-06-23 18:58:41 +0200
commitced7d7b9e1a0cd771be36651558332e0010028bb (patch)
tree5e8c2819b230567f19fe54c765db65942fb52d2f /sources/pyside6/tests/QtWebEngine/web_engine_initialize.py
parent096e64ba2e866abf773f0fab3b72bf48012261f7 (diff)
PySide6: Re-add QtWebEngine, initial step
Remove module QtWebEngine. Move most API from QtWebEngineWidgets to QtWebEngineCore. Adapt imports in tests and examples. The new module QtWebEngineQuick will be added in a follow-up step. This is not functional yet as examples crash in the underlying 6.2 Alpha. Task-number: PYSIDE-1570 Change-Id: I00907e5542404560967e6ae07d102193f1f1e154 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside6/tests/QtWebEngine/web_engine_initialize.py')
-rw-r--r--sources/pyside6/tests/QtWebEngine/web_engine_initialize.py52
1 files changed, 0 insertions, 52 deletions
diff --git a/sources/pyside6/tests/QtWebEngine/web_engine_initialize.py b/sources/pyside6/tests/QtWebEngine/web_engine_initialize.py
deleted file mode 100644
index be9ac0e40..000000000
--- a/sources/pyside6/tests/QtWebEngine/web_engine_initialize.py
+++ /dev/null
@@ -1,52 +0,0 @@
-#############################################################################
-##
-## Copyright (C) 2018 The Qt Company Ltd.
-## Contact: https://www.qt.io/licensing/
-##
-## This file is part of the test suite of Qt for Python.
-##
-## $QT_BEGIN_LICENSE:GPL-EXCEPT$
-## Commercial License Usage
-## Licensees holding valid commercial Qt licenses may use this file in
-## accordance with the commercial license agreement provided with the
-## Software or, alternatively, in accordance with the terms contained in
-## a written agreement between you and The Qt Company. For licensing terms
-## and conditions see https://www.qt.io/terms-conditions. For further
-## information use the contact form at https://www.qt.io/contact-us.
-##
-## GNU General Public License Usage
-## Alternatively, this file may be used under the terms of the GNU
-## General Public License version 3 as published by the Free Software
-## Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-## included in the packaging of this file. Please review the following
-## information to ensure the GNU General Public License requirements will
-## be met: https://www.gnu.org/licenses/gpl-3.0.html.
-##
-## $QT_END_LICENSE$
-##
-#############################################################################
-
-import os
-import sys
-import unittest
-
-from pathlib import Path
-sys.path.append(os.fspath(Path(__file__).resolve().parents[1]))
-from init_paths import init_test_paths
-init_test_paths(False)
-
-from PySide6.QtCore import QTimer
-from PySide6.QtWebEngine import QtWebEngine
-from PySide6.QtWidgets import QApplication
-
-
-class MainTest(unittest.TestCase):
- def test_initializePresent(self):
- app = QApplication([])
- QtWebEngine.initialize()
- QTimer.singleShot(2000, app.quit)
- app.exec()
-
-
-if __name__ == '__main__':
- unittest.main()