diff options
author | Jonatan Pålsson <jonatan.palsson@pelagicore.com> | 2014-03-04 13:32:14 +0100 |
---|---|---|
committer | Jonatan Pålsson <jonatan.palsson@pelagicore.com> | 2014-03-04 13:32:49 +0100 |
commit | b41a1a472bbb446633726d7cf92c3af68fd6add6 (patch) | |
tree | 174c0c0f9096df661cae8079247f461f86793e7a | |
parent | f4437706be393d1995a1f0c63b16815fbdad64b4 (diff) | |
download | browser-poc-b41a1a472bbb446633726d7cf92c3af68fd6add6.tar.gz |
Disabled unittest
-rw-r--r-- | browser/unit-tests/browserdbus/testbrowserdbus.cpp | 40 | ||||
-rw-r--r-- | 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(); |