diff options
author | Artem <artem@artem.(none)> | 2008-06-26 20:52:20 +0500 |
---|---|---|
committer | Artem <artem@artem.(none)> | 2008-06-26 20:52:20 +0500 |
commit | 06d672e913bbf998dd0533de8440190c639fb18f (patch) | |
tree | c12ce01159aee19e120b66c0250ffc2837341168 /tests2 | |
parent | 204f8cd678ba99bea6635649df0feb3abfeb94bd (diff) | |
download | markdown-06d672e913bbf998dd0533de8440190c639fb18f.tar.gz markdown-06d672e913bbf998dd0533de8440190c639fb18f.tar.bz2 markdown-06d672e913bbf998dd0533de8440190c639fb18f.zip |
Test suite cleanup. README for markdown2 tests. Separation in two stages(markdown to tree, applying inline patterns).
Diffstat (limited to 'tests2')
-rw-r--r-- | tests2/formater.py | 55 | ||||
-rw-r--r-- | tests2/php-markdown-cases-new/Code block in a list item.tags | 1 | ||||
-rw-r--r-- | tests2/php-markdown-cases-new/Emphasis.tags | 1 | ||||
-rw-r--r-- | tests2/php-markdown-cases-new/Inline HTML (Simple).tags | 1 | ||||
-rw-r--r-- | tests2/php-markdown-cases-new/Inline HTML (Span).tags | 1 | ||||
-rw-r--r-- | tests2/php-markdown-cases-new/Ins & del.html~ | 24 | ||||
-rw-r--r-- | tests2/php-markdown-cases-new/Parens in URL.tags | 1 | ||||
-rw-r--r-- | tests2/tm-cases-new/code_block_with_tabs.tags | 1 | ||||
-rw-r--r-- | tests2/tm-cases-new/codespans_safe_mode.opts | 1 | ||||
-rw-r--r-- | tests2/tm-cases-new/codespans_safe_mode.tags | 1 | ||||
-rw-r--r-- | tests2/tm-cases-new/escapes.tags | 1 | ||||
-rw-r--r-- | tests2/tm-cases-new/parens_in_url_4.tags | 1 | ||||
-rw-r--r-- | tests2/tm-cases-new/sublist-para.tags | 1 |
13 files changed, 0 insertions, 90 deletions
diff --git a/tests2/formater.py b/tests2/formater.py deleted file mode 100644 index 26d850f..0000000 --- a/tests2/formater.py +++ /dev/null @@ -1,55 +0,0 @@ -from __future__ import with_statement -import os - -excl_tm_cases = """basic_safe_mode -basic_safe_mode_escape -auto_link_safe_mode -code_safe_emphasis -emacs_head_vars -emacs_tail_vars -footnotes -footnotes_letters -footnotes_markup -footnotes_safe_mode_escape -nested_list_safe_mode -issue2_safe_mode_borks_markup -issue3_bad_code_color_hack -link_defn_spaces_in_url -link_patterns -link_patterns_double_hit -link_patterns_edge_cases -mismatched_footnotes -nested_lists_safe_mode -pyshell -syntax_color""" - - -def reformat(path, dest, ex=""): - excl = ex.split("\n") - for fname in os.listdir(path): - if fname.endswith(".html"): - if fname[:-5] in excl: - continue - res = processFile(path + fname) - with open(dest + fname, "w") as rfile: - rfile.write(res) - -def processFile(filePath): - with open(filePath) as f: - result = f.read() - result = result.replace("</pre>\n\n<p>", "</pre><p>") - result = result.replace("</pre>\n<", "</pre><") - result = result.replace("</li>", "\n</li>") - result = result.replace("<li>", "<li>\n") - result = result.replace(">\n<p>", "><p>") - result = result.replace("\" />", "\"/>") - result = result.replace("</p>\n", "\n</p>\n") - - return result - -if __name__ == "__main__": - reformat("php-markdown-cases/", "php-markdown-cases-new/") - reformat("tm-cases/", "tm-cases-new/", excl_tm_cases) - - -
\ No newline at end of file diff --git a/tests2/php-markdown-cases-new/Code block in a list item.tags b/tests2/php-markdown-cases-new/Code block in a list item.tags deleted file mode 100644 index a3d2682..0000000 --- a/tests2/php-markdown-cases-new/Code block in a list item.tags +++ /dev/null @@ -1 +0,0 @@ -knownfailure eol dontcare # fails just because of trailing EOL diff --git a/tests2/php-markdown-cases-new/Emphasis.tags b/tests2/php-markdown-cases-new/Emphasis.tags deleted file mode 100644 index 06cb210..0000000 --- a/tests2/php-markdown-cases-new/Emphasis.tags +++ /dev/null @@ -1 +0,0 @@ -knownfailure dontcare # need a re-write based on html5lib (or something) to fix diff --git a/tests2/php-markdown-cases-new/Inline HTML (Simple).tags b/tests2/php-markdown-cases-new/Inline HTML (Simple).tags deleted file mode 100644 index a3d2682..0000000 --- a/tests2/php-markdown-cases-new/Inline HTML (Simple).tags +++ /dev/null @@ -1 +0,0 @@ -knownfailure eol dontcare # fails just because of trailing EOL diff --git a/tests2/php-markdown-cases-new/Inline HTML (Span).tags b/tests2/php-markdown-cases-new/Inline HTML (Span).tags deleted file mode 100644 index 06cb210..0000000 --- a/tests2/php-markdown-cases-new/Inline HTML (Span).tags +++ /dev/null @@ -1 +0,0 @@ -knownfailure dontcare # need a re-write based on html5lib (or something) to fix diff --git a/tests2/php-markdown-cases-new/Ins & del.html~ b/tests2/php-markdown-cases-new/Ins & del.html~ deleted file mode 100644 index 82bfb2b..0000000 --- a/tests2/php-markdown-cases-new/Ins & del.html~ +++ /dev/null @@ -1,24 +0,0 @@ -<p>Here is a block tag ins: -</p> - -<ins> -<p>Some text -</p> -</ins> - -<ins>And here it is inside a paragraph.</ins> - - -<p>And here it is <ins>in the middle of</ins> a paragraph. -</p> - -<del> -<p>Some text -</p> -</del> - -<del>And here is ins as a paragraph.</del> - - -<p>And here it is <del>in the middle of</del> a paragraph. -</p> diff --git a/tests2/php-markdown-cases-new/Parens in URL.tags b/tests2/php-markdown-cases-new/Parens in URL.tags deleted file mode 100644 index 918b7e8..0000000 --- a/tests2/php-markdown-cases-new/Parens in URL.tags +++ /dev/null @@ -1 +0,0 @@ -dontcare knownfailure diff --git a/tests2/tm-cases-new/code_block_with_tabs.tags b/tests2/tm-cases-new/code_block_with_tabs.tags deleted file mode 100644 index 981bc5a..0000000 --- a/tests2/tm-cases-new/code_block_with_tabs.tags +++ /dev/null @@ -1 +0,0 @@ -fromphpmarkdown # from PHP Markdown test "Parens in URL.text" diff --git a/tests2/tm-cases-new/codespans_safe_mode.opts b/tests2/tm-cases-new/codespans_safe_mode.opts deleted file mode 100644 index ccb6a09..0000000 --- a/tests2/tm-cases-new/codespans_safe_mode.opts +++ /dev/null @@ -1 +0,0 @@ -{'safe_mode': True} diff --git a/tests2/tm-cases-new/codespans_safe_mode.tags b/tests2/tm-cases-new/codespans_safe_mode.tags deleted file mode 100644 index dcc8b6c..0000000 --- a/tests2/tm-cases-new/codespans_safe_mode.tags +++ /dev/null @@ -1 +0,0 @@ -issue9 safe_mode diff --git a/tests2/tm-cases-new/escapes.tags b/tests2/tm-cases-new/escapes.tags deleted file mode 100644 index 0184518..0000000 --- a/tests2/tm-cases-new/escapes.tags +++ /dev/null @@ -1 +0,0 @@ -issue15 diff --git a/tests2/tm-cases-new/parens_in_url_4.tags b/tests2/tm-cases-new/parens_in_url_4.tags deleted file mode 100644 index 981bc5a..0000000 --- a/tests2/tm-cases-new/parens_in_url_4.tags +++ /dev/null @@ -1 +0,0 @@ -fromphpmarkdown # from PHP Markdown test "Parens in URL.text" diff --git a/tests2/tm-cases-new/sublist-para.tags b/tests2/tm-cases-new/sublist-para.tags deleted file mode 100644 index 81b35c7..0000000 --- a/tests2/tm-cases-new/sublist-para.tags +++ /dev/null @@ -1 +0,0 @@ -questionable # <p><p> isn't really correct, but Markdown.pl does the same |