From b41a1a472bbb446633726d7cf92c3af68fd6add6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonatan=20P=C3=A5lsson?= Date: Tue, 4 Mar 2014 13:32:14 +0100 Subject: Disabled unittest --- browser/unit-tests/browserdbus/testbrowserdbus.cpp | 40 +++++++++++----------- browser/unit-tests/browserdbus/testbrowserdbus.h | 2 +- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/browser/unit-tests/browserdbus/testbrowserdbus.cpp b/browser/unit-tests/browserdbus/testbrowserdbus.cpp index 5de6cd1..3744187 100644 --- a/browser/unit-tests/browserdbus/testbrowserdbus.cpp +++ b/browser/unit-tests/browserdbus/testbrowserdbus.cpp @@ -81,26 +81,26 @@ void TestBrowserDBus::testGetsNotifiedWhenLinkIsClicked() { QVERIFY(spy.wait(10000)); } -void TestBrowserDBus::testGetsNotifiedWhenLinkIsHovered() { - m_bdb->createPageWindow(1,0,0,800,600); - QSignalSpy spy (m_bdb, SIGNAL (linkHovered (QString))); - m_bdb->loadurl(testFileUrl()); - - QTest::qSleep(200); - QProcess::execute("xdotool mousemove 0 0"); - QProcess::execute("xdotool mousemove 100 100"); - - bool success = false; - for (int i = 0; i < 10; i++){ - spy.wait(1000); - if (spy.last().value(0).toString().contains("google")) { - success = true; - break; - } - } - - QVERIFY(success); -} +//void TestBrowserDBus::testGetsNotifiedWhenLinkIsHovered() { +// m_bdb->createPageWindow(1,0,0,800,600); +// QSignalSpy spy (m_bdb, SIGNAL (linkHovered (QString))); +// m_bdb->loadurl(testFileUrl()); +// +// QTest::qSleep(200); +// QProcess::execute("xdotool mousemove 0 0"); +// QProcess::execute("xdotool mousemove 100 100"); +// +// bool success = false; +// for (int i = 0; i < 10; i++){ +// spy.wait(1000); +// if (spy.last().value(0).toString().contains("google")) { +// success = true; +// break; +// } +// } +// +// QVERIFY(success); +//} void TestBrowserDBus::testGetsNotifiedWhenSelectionChanges() { m_bdb->createPageWindow(1,0,0,800,600); diff --git a/browser/unit-tests/browserdbus/testbrowserdbus.h b/browser/unit-tests/browserdbus/testbrowserdbus.h index 8a0a373..13ab4f9 100644 --- a/browser/unit-tests/browserdbus/testbrowserdbus.h +++ b/browser/unit-tests/browserdbus/testbrowserdbus.h @@ -28,7 +28,7 @@ private slots: void testGetsNotifiedOnUrlChange(); void testGetsNotifiedOnTitleChange(); void testGetsNotifiedWhenLinkIsClicked(); - void testGetsNotifiedWhenLinkIsHovered(); +// void testGetsNotifiedWhenLinkIsHovered(); void testGetsNotifiedWhenSelectionChanges(); void testGetsNotifiedWhenStatusBarChanges(); void testGetsNotifiedWhenVisibilityChanges(); -- cgit v1.2.1