Changeset 79844 in webkit


Ignore:
Timestamp:
Feb 27, 2011 11:30:10 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-02-27 Aparna Nandyal <aparna.nand@wipro.com>

Reviewed by Antonio Gomes.

[Qt] QtTestBrowser - Horizontal scrollbar disappears on navigating pages using Back/Forward
https://bugs.webkit.org/show_bug.cgi?id=53917

The bug got fixed by other changes. Adding test case to avoid
regressions in the future.

  • fast/overflow/horizontal-scroll-after-back-expected.txt: Added.
  • fast/overflow/horizontal-scroll-after-back.html: Added.

2011-02-27 Aparna Nandyal <aparna.nand@wipro.com>

Reviewed by Antonio Gomes.

[Qt] QtTestBrowser - Horizontal scrollbar disappears on navigating pages using Back/Forward
https://bugs.webkit.org/show_bug.cgi?id=53917

Adding test case to check the scenario to avoid regressions in the
future.

  • tests/qwebframe/tst_qwebframe.cpp:
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r79829 r79844  
     12011-02-27  Aparna Nandyal  <aparna.nand@wipro.com>
     2
     3        Reviewed by Antonio Gomes.
     4
     5        [Qt] QtTestBrowser - Horizontal scrollbar disappears on navigating pages using Back/Forward
     6        https://bugs.webkit.org/show_bug.cgi?id=53917
     7
     8        The bug got fixed by other changes. Adding test case to avoid
     9        regressions in the future.
     10
     11        * fast/overflow/horizontal-scroll-after-back-expected.txt: Added.
     12        * fast/overflow/horizontal-scroll-after-back.html: Added.
     13
    1142011-02-27  Adam Roben  <aroben@apple.com>
    215
  • trunk/Source/WebKit/qt/ChangeLog

    r79826 r79844  
     12011-02-27  Aparna Nandyal  <aparna.nand@wipro.com>
     2
     3        Reviewed by Antonio Gomes.
     4
     5        [Qt] QtTestBrowser - Horizontal scrollbar disappears on navigating pages using Back/Forward
     6        https://bugs.webkit.org/show_bug.cgi?id=53917
     7
     8        Adding test case to check the scenario to avoid regressions in the
     9        future.
     10
     11        * tests/qwebframe/tst_qwebframe.cpp:
     12
    1132011-02-27  Benjamin Poulain  <benjamin.poulain@nokia.com>
    214
  • trunk/Source/WebKit/qt/tests/qwebframe/tst_qwebframe.cpp

    r78816 r79844  
    591591
    592592private slots:
     593    void horizontalScrollAfterBack();
    593594    void getSetStaticProperty();
    594595    void getSetDynamicProperty();
     
    31033104}
    31043105
     3106void tst_QWebFrame::horizontalScrollAfterBack()
     3107{
     3108    QWebView view;
     3109    QWebFrame* frame = view.page()->mainFrame();
     3110    QSignalSpy loadSpy(view.page(), SIGNAL(loadFinished(bool)));
     3111
     3112    view.page()->settings()->setMaximumPagesInCache(2);
     3113    frame->setScrollBarPolicy(Qt::Vertical, Qt::ScrollBarAsNeeded);
     3114    frame->setScrollBarPolicy(Qt::Horizontal, Qt::ScrollBarAsNeeded);
     3115
     3116    view.load(QUrl("qrc:/testiframe2.html"));
     3117    view.resize(200, 200);
     3118    QTRY_COMPARE(loadSpy.count(), 1);
     3119    QTRY_VERIFY((frame->scrollBarGeometry(Qt::Horizontal)).height());
     3120
     3121    view.load(QUrl("qrc:/testiframe.html"));
     3122    QTRY_COMPARE(loadSpy.count(), 2);
     3123
     3124    view.page()->triggerAction(QWebPage::Back);
     3125    QTRY_COMPARE(loadSpy.count(), 3);
     3126    QTRY_VERIFY((frame->scrollBarGeometry(Qt::Horizontal)).height());
     3127}
     3128
    31053129void tst_QWebFrame::evaluateWillCauseRepaint()
    31063130{
Note: See TracChangeset for help on using the changeset viewer.