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

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

Issue 498813002: Rename the docserver third_party dependency "handlebar" to "motemplate", as part (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: imports Created 6 years, 4 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: chrome/common/extensions/docs/server2/template_data_source_test.py
diff --git a/chrome/common/extensions/docs/server2/template_data_source_test.py b/chrome/common/extensions/docs/server2/template_data_source_test.py
index 423acce679b41ed60226a44cfb05097b03a6c0a6..fee3c9a193b47e1ea9c21f4939956260ae9113dd 100755
--- a/chrome/common/extensions/docs/server2/template_data_source_test.py
+++ b/chrome/common/extensions/docs/server2/template_data_source_test.py
@@ -10,7 +10,7 @@ from extensions_paths import SERVER2
from server_instance import ServerInstance
from template_data_source import TemplateDataSource
from test_util import DisableLogging, ReadFile
-from third_party.handlebar import Handlebar
+from third_party.motemplate import Motemplate
def _ReadFile(*path):
return ReadFile(SERVER2, 'test_data', 'template_data_source', *path)
@@ -38,12 +38,12 @@ class TemplateDataSourceTest(unittest.TestCase):
def testSimple(self):
test_data_source = _CreateTestDataSource('simple')
- template_a1 = Handlebar(_ReadFile('simple', 'test1.html'))
+ template_a1 = Motemplate(_ReadFile('simple', 'test1.html'))
context = [{}, {'templates': {}}]
self.assertEqual(
template_a1.Render(*context).text,
test_data_source.get('test1').Render(*context).text)
- template_a2 = Handlebar(_ReadFile('simple', 'test2.html'))
+ template_a2 = Motemplate(_ReadFile('simple', 'test2.html'))
self.assertEqual(
template_a2.Render(*context).text,
test_data_source.get('test2').Render(*context).text)
« no previous file with comments | « chrome/common/extensions/docs/server2/render_servlet.py ('k') | chrome/common/extensions/docs/server2/template_renderer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698