aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/QtQml/javascript_exceptions.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/tests/QtQml/javascript_exceptions.py')
-rw-r--r--sources/pyside6/tests/QtQml/javascript_exceptions.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/sources/pyside6/tests/QtQml/javascript_exceptions.py b/sources/pyside6/tests/QtQml/javascript_exceptions.py
index 6d238b35c..7bb3aa43f 100644
--- a/sources/pyside6/tests/QtQml/javascript_exceptions.py
+++ b/sources/pyside6/tests/QtQml/javascript_exceptions.py
@@ -59,6 +59,7 @@ property_test_string = """
test_1 = False
test_2 = False
+
class TestClass(QObject):
@Slot()
def methodThrows(self):
@@ -77,6 +78,7 @@ class TestClass(QObject):
else:
test_2 = True
+
class JavaScriptExceptionsTest(UsesQApplication):
def test_jsengine(self):
engine = QJSEngine()
@@ -96,7 +98,7 @@ class JavaScriptExceptionsTest(UsesQApplication):
self.assertEqual(result_2.property('name').toString(), 'TypeError')
def test_qml_type(self):
- qmlRegisterType(TestClass, 'JavaScriptExceptions', 1, 0, 'JavaScriptExceptions');
+ qmlRegisterType(TestClass, 'JavaScriptExceptions', 1, 0, 'JavaScriptExceptions')
view = QQuickView()
file = Path(__file__).resolve().parent / 'javascript_exceptions.qml'