Commit f30ad51b authored by Andrey Butirsky's avatar Andrey Butirsky
Browse files

fix KeyboardLayoutTest

FAIL!  : KeyboardLayoutTest::testChangeLayoutThroughDBus() '!layoutChangedSpy.wait(1000)' returned FALSE. ()
   Loc: [/home/bam/kde/src/kwin/autotests/integration/keyboard_layout_test.cpp(250)]
parent 7301564e
...@@ -237,10 +237,9 @@ void KeyboardLayoutTest::testChangeLayoutThroughDBus() ...@@ -237,10 +237,9 @@ void KeyboardLayoutTest::testChangeLayoutThroughDBus()
QVERIFY(!reply.isError()); QVERIFY(!reply.isError());
QCOMPARE(reply.reply().arguments().first().toBool(), true); QCOMPARE(reply.reply().arguments().first().toBool(), true);
QCOMPARE(xkb->layoutName(), QStringLiteral("German")); QCOMPARE(xkb->layoutName(), QStringLiteral("German"));
// FIXME: need to pass QVERIFY(layoutChangedSpy.wait(1000));
// QVERIFY(layoutChangedSpy.wait(1000)); QCOMPARE(layoutChangedSpy.count(), 1);
// QCOMPARE(layoutChangedSpy.count(), 1); layoutChangedSpy.clear();
// layoutChangedSpy.clear();
// switching to same layout should also work // switching to same layout should also work
reply = changeLayout(QStringLiteral("German")); reply = changeLayout(QStringLiteral("German"));
......
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