From 86665d774ec0e4efb46eec47fdc8297a3ff5d196 Mon Sep 17 00:00:00 2001 From: Tomi Korpipaa Date: Thu, 13 Apr 2023 14:20:35 +0300 Subject: Fix invalid value handling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pick-to: 6.5 Fixes: QTBUG-112773 Change-Id: I3b00587d27e88dd69b58efe3551abf8759df0020 Reviewed-by: Tomi Korpipää --- tests/auto/qmltest/scene3d/tst_scene.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/auto/qmltest/scene3d/tst_scene.qml') diff --git a/tests/auto/qmltest/scene3d/tst_scene.qml b/tests/auto/qmltest/scene3d/tst_scene.qml index 1c352c4a..b9f84202 100644 --- a/tests/auto/qmltest/scene3d/tst_scene.qml +++ b/tests/auto/qmltest/scene3d/tst_scene.qml @@ -41,7 +41,7 @@ Item { function test_initial() { verify(initial.scene.activeCamera) verify(initial.scene.activeLight) - compare(initial.scene.devicePixelRatio, 1.0) + compare(initial.scene.devicePixelRatio, Screen.devicePixelRatio) compare(initial.scene.graphPositionQuery, Qt.point(-1, -1)) compare(initial.scene.invalidSelectionPoint, Qt.point(-1, -1)) compare(initial.scene.primarySubViewport.x, 0) -- cgit v1.2.3