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

Unified Diff: tools/grit/grit/format/policy_templates/writers/android_policy_writer_unittest.py

Issue 2529383003: [Android app restrictions] Hide unused and improve descriptions. (Closed)
Patch Set: Fix nit Created 4 years, 1 month 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
« no previous file with comments | « tools/grit/grit/format/policy_templates/writers/android_policy_writer.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/grit/grit/format/policy_templates/writers/android_policy_writer_unittest.py
diff --git a/tools/grit/grit/format/policy_templates/writers/android_policy_writer_unittest.py b/tools/grit/grit/format/policy_templates/writers/android_policy_writer_unittest.py
index 437c71acc8efa0d7e606814ef01d484e913c6109..18868c1ce5e8fa02ae29930a94d6bef88d990905 100755
--- a/tools/grit/grit/format/policy_templates/writers/android_policy_writer_unittest.py
+++ b/tools/grit/grit/format/policy_templates/writers/android_policy_writer_unittest.py
@@ -27,7 +27,8 @@ class AndroidPolicyWriterUnittest(writer_unittest_common.WriterUnittestCommon):
'name': '_policy_name',
'caption': '_policy_caption',
'desc': 'This is a long policy caption. More than one sentence '
- 'in a single line because it is very important.\nIgnore this.'
+ 'in a single line because it is very important.\n'
+ 'Second line, also important'
}
writer = android_policy_writer.GetWriter({})
writer.Init()
@@ -38,7 +39,8 @@ class AndroidPolicyWriterUnittest(writer_unittest_common.WriterUnittestCommon):
'<resources>'
'<string name="_policy_nameTitle">_policy_caption</string>'
'<string name="_policy_nameDesc">This is a long policy caption. More '
- 'than one sentence in a single line because it is very important.'
+ 'than one sentence in a single line because it is very '
+ 'important.\nSecond line, also important'
'</string>'
'</resources>')
@@ -47,7 +49,7 @@ class AndroidPolicyWriterUnittest(writer_unittest_common.WriterUnittestCommon):
policy = {
'name': '_policy_name',
'caption': '_policy_caption',
- 'desc': '_policy_desc_first.\n_ignored_policy_desc',
+ 'desc': '_policy_desc_first.\nadditional line',
'items': [
{
'caption':'_caption1',
@@ -67,7 +69,8 @@ class AndroidPolicyWriterUnittest(writer_unittest_common.WriterUnittestCommon):
writer._resources.toxml(),
'<resources>'
'<string name="_policy_nameTitle">_policy_caption</string>'
- '<string name="_policy_nameDesc">_policy_desc_first.</string>'
+ '<string name="_policy_nameDesc">_policy_desc_first.\n'
+ 'additional line</string>'
'<string-array name="_policy_nameEntries">'
'<item>_caption1</item>'
'<item>_caption2</item>'
« no previous file with comments | « tools/grit/grit/format/policy_templates/writers/android_policy_writer.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698