2011-05-30 Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>
authorCaio Marcelo de Oliveira Filho <cmarcelo@webkit.org>
Mon, 30 May 2011 19:02:21 +0000 (19:02 +0000)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Wed, 1 Jun 2011 17:57:58 +0000 (14:57 -0300)
commite999247015873259e84a1ab5e37d9e944745bb29
tree576a6f566547272b512ac4ce802766db4f3b8348
parentb6ea32926ad19cf9f1e4fa34da9e5a50cecee35a
2011-05-30  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>

        Reviewed by Andreas Kling.

        [Qt] Fix unnecessary wait in API autotest tst_QWebFrame::scrollbarsOff
        https://bugs.webkit.org/show_bug.cgi?id=61711

        The loadFinished() signal was emitted directly inside the call for setHtml, so
        the test was waiting the loadFinished() signal with a big timeout. Change this by
        a very small timeout and a verification with signal spy.

        In practice, setHtml() will either directly call loadFinished() or queue it to
        the next event loop run, and test will work for both situations.

        * tests/qwebframe/tst_qwebframe.cpp:
        (tst_QWebFrame::scrollbarsOff):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@87695 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit/qt/ChangeLog
Source/WebKit/qt/tests/qwebframe/tst_qwebframe.cpp