+2010-07-18 Andreas Kling <andreas.kling@nokia.com>
+
+ Reviewed by Antonio Gomes.
+
+ [Qt] tst_QWebPage fails cursorMovements and textSelection
+ https://bugs.webkit.org/show_bug.cgi?id=42531
+
+ Correct the HTML used by these tests.
+
+ * tests/qwebpage/tst_qwebpage.cpp:
+ (tst_QWebPage::cursorMovements):
+ (tst_QWebPage::textSelection):
+ (tst_QWebPage::textEditing):
+
2010-07-18 Andreas Kling <andreas.kling@nokia.com>
Reviewed by Antonio Gomes.
void tst_QWebPage::cursorMovements()
{
CursorTrackedPage* page = new CursorTrackedPage;
- 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>");
+ 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>");
page->mainFrame()->setHtml(content);
// this will select the first paragraph
void tst_QWebPage::textSelection()
{
CursorTrackedPage* page = new CursorTrackedPage;
- QString content("<html><body<p id=one>The quick brown fox</p>" \
+ 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>");
page->mainFrame()->setHtml(content);
void tst_QWebPage::textEditing()
{
CursorTrackedPage* page = new CursorTrackedPage;
- QString content("<html><body<p id=one>The quick brown fox</p>" \
+ 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>");
page->mainFrame()->setHtml(content);