[Qt] Fix build on MSVC.

Reviewed by nobody, build fix.

qobject_cast<> requires the class to be exported on MSVC,
removing it since the code that needs it is commented out for
the same reason.

* tests/qdeclarativewebview/tst_qdeclarativewebview.cpp:
(tst_QDeclarativeWebView::elementAreaAt):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@86438 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 9737b0aa
2011-05-11 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
Reviewed by nobody, build fix.
[Qt] Fix build on MSVC.
qobject_cast<> requires the class to be exported on MSVC,
removing it since the code that needs it is commented out for
the same reason.
* tests/qdeclarativewebview/tst_qdeclarativewebview.cpp:
(tst_QDeclarativeWebView::elementAreaAt):
2011-05-11 Jocelyn Turcotte <jocelyn.turcotte@nokia.com> 2011-05-11 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
Reviewed by nobody, build fix. Reviewed by nobody, build fix.
......
...@@ -138,10 +138,11 @@ void tst_QDeclarativeWebView::elementAreaAt() ...@@ -138,10 +138,11 @@ void tst_QDeclarativeWebView::elementAreaAt()
QDeclarativeEngine engine; QDeclarativeEngine engine;
QDeclarativeComponent component(&engine, QUrl("qrc:///resources/elements.qml")); QDeclarativeComponent component(&engine, QUrl("qrc:///resources/elements.qml"));
checkNoErrors(component); checkNoErrors(component);
QDeclarativeWebView* wv = qobject_cast<QDeclarativeWebView*>(component.create()); QObject* wv = component.create();
QVERIFY(wv); QVERIFY(wv);
QTRY_COMPARE(wv->property("progress").toDouble(), 1.0); QTRY_COMPARE(wv->property("progress").toDouble(), 1.0);
// FIXME: Tests disabled since elementAreaAt isn't exported.
// Areas from elements.html. // Areas from elements.html.
// const QRect areaA(1, 1, 75, 54); // const QRect areaA(1, 1, 75, 54);
// const QRect areaB(78, 3, 110, 50); // const QRect areaB(78, 3, 110, 50);
......
Markdown is supported
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