Chromium Code Reviews| Index: grit/format/policy_templates/writers/doc_writer_unittest.py |
| =================================================================== |
| --- grit/format/policy_templates/writers/doc_writer_unittest.py (revision 177) |
| +++ grit/format/policy_templates/writers/doc_writer_unittest.py (working copy) |
| @@ -39,6 +39,7 @@ |
| 'os_name': 'Chrome OS', |
| 'win_reg_mandatory_key_name': 'MockKey', |
| 'win_reg_recommended_key_name': 'MockKeyRec', |
| + 'build': 'test', |
|
pastarmovj
2014/10/07 14:54:35
Again here. I guess the explanation is the same as
cschuet1
2014/10/07 15:42:46
Done.
|
| }) |
| self.writer.messages = { |
| 'doc_back_to_top': {'text': '_test_back_to_top'}, |
| @@ -103,6 +104,31 @@ |
| '<div/>' |
| '</div>') |
| + def testSkeletonVersion(self): |
|
pastarmovj
2014/10/07 14:54:35
I'd keep the name of this test consistent over all
cschuet1
2014/10/07 15:42:46
Done.
|
| + # Test if DocWriter creates the skeleton of the document correctly. |
| + self.writer.config['version'] = '39.0.0.0' |
| + self.writer.BeginTemplate() |
| + self.assertEquals( |
| + self.writer._main_div.toxml(), |
| + '<div>' |
| + '<!--test version: 39.0.0.0-->' |
| + '<div>' |
| + '<a name="top"/><br/>_test_intro<br/><br/><br/>' |
| + '<table style="style_table;">' |
| + '<thead><tr style="style_tr;">' |
| + '<td style="style_td;style_td.left;style_thead td;">' |
| + '_test_name_column_title' |
| + '</td>' |
| + '<td style="style_td;style_td.right;style_thead td;">' |
| + '_test_description_column_title' |
| + '</td>' |
| + '</tr></thead>' |
| + '<tbody/>' |
| + '</table>' |
| + '</div>' |
| + '<div/>' |
| + '</div>') |
| + |
| def testGetLocalizedMessage(self): |
| # Test if localized messages are retrieved correctly. |
| self.writer.messages = { |