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

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

Issue 10689117: Extensions Docs Server: Support APIs with properties (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 8 years, 5 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/handlebar_dict_generator_test.py
diff --git a/chrome/common/extensions/docs/server2/handlebar_dict_generator_test.py b/chrome/common/extensions/docs/server2/handlebar_dict_generator_test.py
index e3cdbbc6063244e40012b6e14c9de966a7206014..db7fba46c39fd81e3e04d7a10e356142f626d2c4 100755
--- a/chrome/common/extensions/docs/server2/handlebar_dict_generator_test.py
+++ b/chrome/common/extensions/docs/server2/handlebar_dict_generator_test.py
@@ -9,6 +9,7 @@ import unittest
from handlebar_dict_generator import HandlebarDictGenerator
from handlebar_dict_generator import _GetLinkToRefType
+from handlebar_dict_generator import _FormatValue
import third_party.json_schema_compiler.json_comment_eater as comment_eater
import third_party.json_schema_compiler.model as model
@@ -40,5 +41,10 @@ class DictGeneratorTest(unittest.TestCase):
self.assertEquals(link['href'], 'lies.html#type-chrome.bookmarks.Tab')
self.assertEquals(link['text'], 'chrome.bookmarks.Tab')
+ def testFormatValue(self):
+ self.assertEquals('1,234,567', _FormatValue(1234567))
+ self.assertEquals('67', _FormatValue(67))
+ self.assertEquals('234,567', _FormatValue(234567))
+
if __name__ == '__main__':
unittest.main()

Powered by Google App Engine
This is Rietveld 408576698