Home | History | Annotate | Download | only in tests

Lines Matching defs:paragraph

29 static const char* centeredContents = "<html><body><p style='text-align: center;'>Short line</p><p style='text-align: center;'>Long-size line with some foo bar baz content</p><p style='text-align: center;'>Short line</p><p style='text-align: center;'>This is a multi-line paragraph<br />where the first line<br />is the biggest one</p></body></html>";
35 static const char* contentsWithSpecialChars = "<html><body><p>&laquo;&nbsp;This is a paragraph with &ldquo;special&rdquo; characters inside.&nbsp;&raquo;</p></body></html>";
49 static const char* contentsWithExtraneousWhiteSpaces = "<html><head><body><p>This\n paragraph\n is\n borked!</p></body></html>";
57 static const char* hypertextAndHyperlinks = "<html><body><p>A paragraph with no links at all</p><p><a href='http://foo.bar.baz/'>A line</a> with <a href='http://bar.baz.foo/'>a link in the middle</a> as well as at the beginning and <a href='http://baz.foo.bar/'>at the end</a></p><ol><li>List item with a <span><a href='http://foo.bar.baz/'>link inside a span node</a></span></li></ol></body></html>";
65 static const char* textForCaretBrowsing = "<html><body><h1>A text header</h1><p>A paragraph <a href='http://foo.bar.baz/'>with a link</a> in the middle</p><ol><li>A list item</li></ol><select><option selected value='foo'>An option in a combo box</option></select></body></html>";
67 static const char* textForSelections = "<html><body><p>A paragraph with plain text</p><p>A paragraph with <a href='http://webkit.org'>a link</a> in the middle</p><ol><li>A list item</li></ol><select></body></html>";
260 AtkObject* paragraph = atk_object_ref_accessible_child(object, 1);
261 g_assert(ATK_IS_TEXT(paragraph));
262 text = atk_text_get_text(ATK_TEXT(paragraph), 0, -1);
263 g_assert_cmpstr(text, ==, "A paragraph with a link in the middle");
266 /* It should be possible to place the caret inside a paragraph and a link. */
267 result = atk_text_set_caret_offset(ATK_TEXT(paragraph), 5);
269 offset = atk_text_get_caret_offset(ATK_TEXT(paragraph));
272 result = atk_text_set_caret_offset(ATK_TEXT(paragraph), 20);
274 offset = atk_text_get_caret_offset(ATK_TEXT(paragraph));
277 result = atk_text_set_caret_offset(ATK_TEXT(paragraph), 30);
279 offset = atk_text_get_caret_offset(ATK_TEXT(paragraph));
327 g_object_unref(paragraph);
363 g_assert_cmpstr(text, ==, "This paragraph is borked!");
720 const gchar* expectedText = "\302\253\302\240This is a paragraph with \342\200\234special\342\200\235 characters inside.\302\240\302\273";
1100 /* First paragraph (simple text). */
1146 /* Second paragraph (text + link + text). */
1152 /* Test the paragraph first. */
1168 /* Make a selection after the link and check selection for the whole paragraph. */
1277 /* First paragraph (short text). */
1288 /* Second paragraph (long text). */
1299 /* Third paragraph (short text). */
1310 /* Four paragraph (3 lines multi-line text). */
1396 /* First paragraph (link at the beginning). */
1397 AtkObject* paragraph = atk_object_ref_accessible_child(object, 0);
1398 g_assert(ATK_IS_TEXT(paragraph));
1401 gchar* text = atk_text_get_text_at_offset(ATK_TEXT(paragraph), 0, ATK_TEXT_BOUNDARY_LINE_START, &startOffset, &endOffset);
1407 g_object_unref(paragraph);
1409 /* Second paragraph (link in the middle). */
1410 paragraph = atk_object_ref_accessible_child(object, 1);
1411 g_assert(ATK_IS_TEXT(paragraph));
1412 text = atk_text_get_text_at_offset(ATK_TEXT(paragraph), 0, ATK_TEXT_BOUNDARY_LINE_START, &startOffset, &endOffset);
1418 g_object_unref(paragraph);
1420 /* Third paragraph (link at the end). */
1421 paragraph = atk_object_ref_accessible_child(object, 2);
1422 g_assert(ATK_IS_TEXT(paragraph));
1423 text = atk_text_get_text_at_offset(ATK_TEXT(paragraph), 0, ATK_TEXT_BOUNDARY_LINE_START, &startOffset, &endOffset);
1429 g_object_unref(paragraph);
1453 /* No links in the first paragraph. */
1462 /* Check links in the second paragraph.