Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Unified Diff: trunk/src/chrome/common/extensions/docs/server2/content_provider_test.py

Issue 132753002: Revert 243980 "Docserver: Support markdown for HTML content." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: trunk/src/chrome/common/extensions/docs/server2/content_provider_test.py
===================================================================
--- trunk/src/chrome/common/extensions/docs/server2/content_provider_test.py (revision 244008)
+++ trunk/src/chrome/common/extensions/docs/server2/content_provider_test.py (working copy)
@@ -15,20 +15,13 @@
from test_file_system import TestFileSystem
from third_party.handlebar import Handlebar
+
_REDIRECTS_JSON = json.dumps({
'oldfile.html': 'storage.html',
'index.html': 'https://developers.google.com/chrome',
})
-_MARKDOWN_CONTENT = (
- ('# Header 1 #', u'<h1 id="header-1">Header 1</h1>'),
- ('1. Foo\n', u'<ol>\n<li>Foo</li>\n</ol>'),
- ('![alt text](/path/img.jpg "Title")\n',
- '<p><img alt="alt text" src="/path/img.jpg" title="Title" /></p>'),
- ('* Unordered item 1', u'<ul>\n<li>Unordered item 1</li>\n</ul>')
-)
-
# Test file system data which exercises many different mimetypes.
_TEST_DATA = {
'dir': {
@@ -53,7 +46,6 @@
'run.js': 'run.js content',
'site.css': 'site.css content',
'storage.html': 'storage.html content',
- 'markdown.md': '\n'.join(text[0] for text in _MARKDOWN_CONTENT)
}
@@ -128,13 +120,6 @@
['dir3/a.txt', 'dir3/b.txt', 'dir3/c/d.txt'], 'application/zip',
content_and_type)
- def testMarkdown(self):
- content_and_type = self._content_provider.GetContentAndType(
- 'markdown.html').Get()
- content_and_type.content = content_and_type.content.source
- self._assertContent('\n'.join(text[1] for text in _MARKDOWN_CONTENT),
- 'text/html', content_and_type)
-
def testNotFound(self):
self.assertRaises(
FileNotFoundError,

Powered by Google App Engine
This is Rietveld 408576698