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

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

Issue 93743005: Support markdown template for html editor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add _MaybeMarkdown Created 7 years 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: chrome/common/extensions/docs/server2/content_provider_test.py
diff --git a/chrome/common/extensions/docs/server2/content_provider_test.py b/chrome/common/extensions/docs/server2/content_provider_test.py
index d672acae2b67ae22f60f82efe0f52e792b4ab728..8b168eb6f8ceeb6821f0b6ee684aa8a2895059b7 100755
--- a/chrome/common/extensions/docs/server2/content_provider_test.py
+++ b/chrome/common/extensions/docs/server2/content_provider_test.py
@@ -15,7 +15,6 @@ from object_store_creator import ObjectStoreCreator
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',
@@ -46,6 +45,7 @@ _TEST_DATA = {
'run.js': 'run.js content',
'site.css': 'site.css content',
'storage.html': 'storage.html content',
+ 'markdown.md': 'markdown content'
not at google - send to devlin 2013/12/20 11:50:41 could you actually include some markdown syntax in
hukun 2013/12/23 05:12:58 Done
}
@@ -120,6 +120,13 @@ class ContentProviderUnittest(unittest.TestCase):
['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(u'<p>markdown content</p>', 'text/html',
+ content_and_type)
+
def testNotFound(self):
self.assertRaises(
FileNotFoundError,

Powered by Google App Engine
This is Rietveld 408576698