|
html2po(self,
markup)
Helper to convert html to po without a file. |
source code
|
|
|
po2html(self,
posource,
htmltemplate)
Helper to convert po to html without a file. |
source code
|
|
|
countunits(self,
pofile,
expected)
helper to check that we got the expected number of messages |
source code
|
|
|
compareunit(self,
pofile,
unitnumber,
expected)
helper to validate a PO message |
source code
|
|
|
check_single(self,
markup,
itemtext)
checks that converting this markup produces a single element with
value itemtext |
source code
|
|
|
check_null(self,
markup)
checks that converting this markup produces no elements |
source code
|
|
|
check_phpsnippet(self,
php)
Given a snippet of php, put it into an HTML shell and see if the
results are as expected |
source code
|
|
|
test_htmllang(self)
test to ensure that we no longer use the lang attribure |
source code
|
|
|
test_title(self)
test that we can extract the <title> tag |
source code
|
|
|
test_title_with_linebreak(self)
Test a linebreak in the <title> tag |
source code
|
|
|
test_meta(self)
Test that we can extract certain <meta> info from <head>. |
source code
|
|
|
test_tag_p(self)
test that we can extract the <p> tag |
source code
|
|
|
test_tag_p_with_linebreak(self)
Test newlines within the <p> tag. |
source code
|
|
|
test_tag_div(self)
test that we can extract the <div> tag |
source code
|
|
|
test_tag_div_with_linebreaks(self)
Test linebreaks within a <div> tag. |
source code
|
|
|
test_tag_a(self)
test that we can extract the <a> tag |
source code
|
|
|
test_tag_a_with_linebreak(self)
Test that we can extract the <a> tag with newlines in it. |
source code
|
|
|
test_tag_img(self)
Test that we can extract the alt attribute from the <img> tag. |
source code
|
|
|
test_img_empty(self)
Test that we can extract the alt attribute from the <img> tag. |
source code
|
|
|
test_tag_table_summary(self)
Test that we can extract the summary attribute. |
source code
|
|
|
test_table_simple(self)
Test that we can fully extract a simple table. |
source code
|
|
|
|
|
|
|
test_address(self)
Test to see if the address element is extracted |
source code
|
|
|
test_headings(self)
Test to see if the h* elements are extracted |
source code
|
|
|
test_headings_with_linebreaks(self)
Test to see if h* elements with newlines can be extracted |
source code
|
|
|
test_dt(self)
Test to see if the definition list title (dt) element is extracted |
source code
|
|
|
test_dd(self)
Test to see if the definition list description (dd) element is
extracted |
source code
|
|
|
test_span(self)
test to check that we don't double extract a span item |
source code
|
|
|
test_ul(self)
Test to see if the list item <li> is exracted |
source code
|
|
|
test_duplicates(self)
check that we use the default style of msgid_comments to disambiguate
duplicate messages |
source code
|
|
|
wtest_multiline_reflow(self)
check that we reflow multiline content to make it more readable for
translators |
source code
|
|
|
wtest_nested_tags(self)
check that we can extract items within nested tags |
source code
|
|
|
test_carriage_return(self)
Remove carriage returns from files in dos format. |
source code
|
|
|
test_encoding_latin1(self)
Convert HTML input in iso-8859-1 correctly to unicode. |
source code
|
|
|
test_strip_html(self)
Ensure that unnecessary html is stripped from the resulting unit. |
source code
|
|
|
test_php(self)
Test that PHP snippets don't interfere |
source code
|
|
|
test_multiple_php(self)
Test multiple PHP snippets in a string to make sure they get restored
properly |
source code
|
|
|
|