Chromium Code Reviews| 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..c329e90707a3ef4f1191c2ed93a5bb49a42caee9 100755 |
| --- a/chrome/common/extensions/docs/server2/content_provider_test.py |
| +++ b/chrome/common/extensions/docs/server2/content_provider_test.py |
| @@ -21,7 +21,6 @@ _REDIRECTS_JSON = json.dumps({ |
| 'index.html': 'https://developers.google.com/chrome', |
| }) |
| - |
|
not at google - send to devlin
2013/12/20 03:56:43
leave this
hukun
2013/12/20 07:41:53
Done
|
| # Test file system data which exercises many different mimetypes. |
| _TEST_DATA = { |
| 'dir': { |
| @@ -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' |
| } |
| @@ -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, |