Commit 03aed13d authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Fix unit tests for Qt5.9: QCOMPARE has no overload for double vs. int

parent af609c37
......@@ -310,14 +310,14 @@ void TestKWaylandConfig::testApplyOnPending()
// check if the server changed
QCOMPARE(serverSpy.count(), 1);
QCOMPARE(configSpy.count(), 1);
QCOMPARE(output->scale(), 2);
QCOMPARE(output2->scale(), 3);
QCOMPARE(output->scale(), 2.0);
QCOMPARE(output2->scale(), 3.0);
QVERIFY(configSpy.wait());
// check if the server changed
QCOMPARE(serverSpy.count(), 2);
QCOMPARE(configSpy.count(), 2);
QCOMPARE(output2->scale(), 3);
QCOMPARE(output2->scale(), 3.0);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment