- a/WebKit/qt/ChangeLog +14 lines
Lines 1-5 a/WebKit/qt/ChangeLog_sec1
1
2010-07-18  Andreas Kling  <andreas.kling@nokia.com>
1
2010-07-18  Andreas Kling  <andreas.kling@nokia.com>
2
2
3
        Reviewed by NOBODY (OOPS!).
4
5
        [Qt] tst_QWebPage fails cursorMovements and textSelection
6
        https://bugs.webkit.org/show_bug.cgi?id=42531
7
8
        Correct the HTML used by these tests.
9
10
        * tests/qwebpage/tst_qwebpage.cpp:
11
        (tst_QWebPage::cursorMovements):
12
        (tst_QWebPage::textSelection):
13
        (tst_QWebPage::textEditing):
14
15
2010-07-18  Andreas Kling  <andreas.kling@nokia.com>
16
3
        Reviewed by Antonio Gomes.
17
        Reviewed by Antonio Gomes.
4
18
5
        [Qt] tst_QWebElement fails firstChildNextSibling and lastChildPreviousSibling
19
        [Qt] tst_QWebElement fails firstChildNextSibling and lastChildPreviousSibling
- a/WebKit/qt/tests/qwebpage/tst_qwebpage.cpp -3 / +3 lines
Lines 862-868 public: a/WebKit/qt/tests/qwebpage/tst_qwebpage.cpp_sec1
862
void tst_QWebPage::cursorMovements()
862
void tst_QWebPage::cursorMovements()
863
{
863
{
864
    CursorTrackedPage* page = new CursorTrackedPage;
864
    CursorTrackedPage* page = new CursorTrackedPage;
865
    QString content("<html><body<p id=one>The quick brown fox</p><p id=two>jumps over the lazy dog</p><p>May the source<br/>be with you!</p></body></html>");
865
    QString content("<html><body><p id=one>The quick brown fox</p><p id=two>jumps over the lazy dog</p><p>May the source<br/>be with you!</p></body></html>");
866
    page->mainFrame()->setHtml(content);
866
    page->mainFrame()->setHtml(content);
867
867
868
    // this will select the first paragraph
868
    // this will select the first paragraph
Lines 1054-1060 void tst_QWebPage::cursorMovements() a/WebKit/qt/tests/qwebpage/tst_qwebpage.cpp_sec2
1054
void tst_QWebPage::textSelection()
1054
void tst_QWebPage::textSelection()
1055
{
1055
{
1056
    CursorTrackedPage* page = new CursorTrackedPage;
1056
    CursorTrackedPage* page = new CursorTrackedPage;
1057
    QString content("<html><body<p id=one>The quick brown fox</p>" \
1057
    QString content("<html><body><p id=one>The quick brown fox</p>" \
1058
        "<p id=two>jumps over the lazy dog</p>" \
1058
        "<p id=two>jumps over the lazy dog</p>" \
1059
        "<p>May the source<br/>be with you!</p></body></html>");
1059
        "<p>May the source<br/>be with you!</p></body></html>");
1060
    page->mainFrame()->setHtml(content);
1060
    page->mainFrame()->setHtml(content);
Lines 1142-1148 void tst_QWebPage::textSelection() a/WebKit/qt/tests/qwebpage/tst_qwebpage.cpp_sec3
1142
void tst_QWebPage::textEditing()
1142
void tst_QWebPage::textEditing()
1143
{
1143
{
1144
    CursorTrackedPage* page = new CursorTrackedPage;
1144
    CursorTrackedPage* page = new CursorTrackedPage;
1145
    QString content("<html><body<p id=one>The quick brown fox</p>" \
1145
    QString content("<html><body><p id=one>The quick brown fox</p>" \
1146
        "<p id=two>jumps over the lazy dog</p>" \
1146
        "<p id=two>jumps over the lazy dog</p>" \
1147
        "<p>May the source<br/>be with you!</p></body></html>");
1147
        "<p>May the source<br/>be with you!</p></body></html>");
1148
    page->mainFrame()->setHtml(content);
1148
    page->mainFrame()->setHtml(content);

Return to Bug 42531