- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
- 3 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/3rdparty/webkit/WebKit/qt/tests/qgraphicswebview/qgraphicswebview.pro
r561 r846 1 TEMPLATE = app 2 TARGET = tst_qgraphicswebview 3 include(../../../../WebKit.pri) 4 SOURCES += tst_qgraphicswebview.cpp 5 QT += testlib network 6 QMAKE_RPATHDIR = $$OUTPUT_DIR/lib $$QMAKE_RPATHDIR 7 8 symbian { 9 TARGET.CAPABILITY = ReadUserData WriteUserData NetworkServices 10 } 1 isEmpty(OUTPUT_DIR): OUTPUT_DIR = ../../../.. 2 include(../tests.pri) 3 exists($${TARGET}.qrc):RESOURCES += $${TARGET}.qrc -
trunk/src/3rdparty/webkit/WebKit/qt/tests/qgraphicswebview/tst_qgraphicswebview.cpp
r561 r846 18 18 */ 19 19 20 20 21 #include <QtTest/QtTest> 21 22 #include <QGraphicsSceneMouseEvent> 22 23 #include <QGraphicsView> 23 24 #include <qgraphicswebview.h> … … 25 26 #include <qwebframe.h> 26 27 27 /**28 * Starts an event loop that runs until the given signal is received.29 * Optionally the event loop30 * can return earlier on a timeout.31 *32 * \return \p true if the requested signal was received33 * \p false on timeout34 */35 static bool waitForSignal(QObject* obj, const char* signal, int timeout = 10000)36 {37 QEventLoop loop;38 QObject::connect(obj, signal, &loop, SLOT(quit()));39 QTimer timer;40 QSignalSpy timeoutSpy(&timer, SIGNAL(timeout()));41 if (timeout > 0) {42 QObject::connect(&timer, SIGNAL(timeout()), &loop, SLOT(quit()));43 timer.setSingleShot(true);44 timer.start(timeout);45 }46 loop.exec();47 return timeoutSpy.isEmpty();48 }49 50 28 class tst_QGraphicsWebView : public QObject 51 29 { … … 55 33 void qgraphicswebview(); 56 34 void crashOnViewlessWebPages(); 35 36 37 57 38 }; 58 39 … … 98 79 }; 99 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 100 104 void tst_QGraphicsWebView::crashOnViewlessWebPages() 101 105 { …