|
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); |