OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:failUnless
(Results
1 - 25
of
48
) sorted by null
1
2
/external/chromium_org/tools/grit/grit/gather/
muppet_strings_unittest.py
23
self.
failUnless
(len(gatherer.GetCliques()) == 2)
24
self.
failUnless
(gatherer.Translate('en').replace('\n', '') == original)
37
self.
failUnless
(gatherer.GetCliques()[0].translateable)
38
self.
failUnless
(len(gatherer.GetCliques()) == 2)
39
self.
failUnless
(gatherer.GetCliques()[0].GetMessage().GetRealContent() ==
41
self.
failUnless
(gatherer.GetCliques()[0].GetMessage().GetDescription() == 'Howdie')
42
self.
failUnless
(gatherer.GetCliques()[1].GetMessage().GetRealContent() ==
44
self.
failUnless
(gatherer.GetCliques()[1].GetMessage().GetMeaning() == 'bingo')
50
self.
failUnless
(gatherer.GetCliques()[0].translateable)
52
self.
failUnless
(len(msg.GetPlaceholders()) == 3
[
all
...]
rc_unittest.py
47
self.
failUnless
(out.GetText() == self.part_we_want)
56
self.
failUnless
(out_text.strip() == self.part_we_want.strip())
78
self.
failUnless
(len(dlg.GetTextualIds()) == 7)
79
self.
failUnless
(len(dlg.GetCliques()) == 6)
80
self.
failUnless
(dlg.GetCliques()[1].GetMessage().GetRealContent() ==
84
self.
failUnless
(transl.strip() == dlg.GetText().strip())
110
self.
failUnless
(transl.count('040704') and
112
self.
failUnless
(transl.count('Yipee skippy'))
135
self.
failUnless
(len(menu.GetTextualIds()) == 6)
136
self.
failUnless
(len(menu.GetCliques()) == 1
[
all
...]
policy_json_unittest.py
31
self.
failUnless
(len(gatherer.GetCliques()) == 0)
32
self.
failUnless
(eval(original) == eval(gatherer.Translate('en')))
58
self.
failUnless
(len(gatherer.GetCliques()) == 4)
60
self.
failUnless
(expected == eval(gatherer.Translate('en')))
80
self.
failUnless
(len(gatherer.GetCliques()) == 1)
82
self.
failUnless
(expected == eval(gatherer.Translate('en')))
101
self.
failUnless
(len(gatherer.GetCliques()) == 1)
103
self.
failUnless
(expected == eval(gatherer.Translate('en')))
144
self.
failUnless
(len(gatherer.GetCliques()) == 6)
146
self.
failUnless
(expected == eval(gatherer.Translate('en'))
[
all
...]
txt_unittest.py
26
self.
failUnless
(gatherer.GetText() == input.getvalue())
27
self.
failUnless
(len(gatherer.GetCliques()) == 1)
28
self.
failUnless
(gatherer.GetCliques()[0].GetMessage().GetRealContent() ==
igoogle_strings_unittest.py
25
self.
failUnless
(len(gatherer.GetCliques()) == 1)
26
self.
failUnless
(gatherer.Translate('en').replace('\n', '') == original)
admin_template_unittest.py
34
self.
failUnless
(len(gatherer.GetCliques()) == 2)
35
self.
failUnless
(gatherer.GetCliques()[1].GetMessage().GetRealContent() ==
39
self.
failUnless
(translation == gatherer.GetText().strip())
61
self.
failUnless
(len(cliques) > 20)
64
self.
failUnless
(text == expected)
107
self.
failUnless
(os.path.isfile(
109
self.
failUnless
(os.path.isfile(
/external/chromium_org/tools/grit/grit/tool/
buildinfo_unittest.py
48
self.
failUnless
(output.count(r'rc_all|sv_sidebar_loading.html'))
49
self.
failUnless
(output.count(r'rc_header|resource.h'))
50
self.
failUnless
(output.count(r'rc_all|en_generated_resources.rc'))
51
self.
failUnless
(output.count(r'rc_all|sv_generated_resources.rc'))
52
self.
failUnless
(output.count(r'input|../grit/testdata/substitute.xmb'))
53
self.
failUnless
(output.count(r'input|../grit/testdata/pr.bmp'))
54
self.
failUnless
(output.count(r'input|../grit/testdata/pr2.bmp'))
55
self.
failUnless
(
57
self.
failUnless
(output.count(r'input|../grit/testdata/transl.rc'))
58
self.
failUnless
(output.count(r'input|../grit/testdata/transl1.rc')
[
all
...]
rc2grd_unittest.py
27
self.
failUnless
(msg.GetPresentableContent() == "Hello TODO_0001, how are you? I'm TODO_0002 years old!")
28
self.
failUnless
(msg.GetRealContent() == original)
34
self.
failUnless
(msg.GetPresentableContent() ==
36
self.
failUnless
(msg.GetRealContent() == original)
61
self.
failUnless
(len(rc2grd._MENU.findall(two_menus)) == 2)
77
self.
failUnless
(tool.o.node.GetCdata().find('Set As Homepage') != -1)
81
self.
failUnless
(tool.o.node.attrs['translateable'] == 'false')
120
self.
failUnless
(
122
self.
failUnless
(
124
self.
failUnless
(
[
all
...]
transl2tc_unittest.py
40
self.
failUnless
(output.strip() == '''
108
self.
failUnless
('Ein' in values)
109
self.
failUnless
('NUMBIRDS Vogeln' in values)
110
self.
failUnless
('ITEM von COUNT' in values)
111
self.
failUnless
(values.count('Hallo') == 1)
116
self.
failUnless
(('Howdie' in values or 'Hallo sagt man' in values) and not
119
self.
failUnless
('XX01XX&SkraXX02XX&HaettaXX03XXThetta er "Klonk" sem eg fylaXX04XXgonkurinnXX05XXKlonk && er [good]XX06XX&HjalpXX07XX&Um...XX08XX' in values)
121
self.
failUnless
('I lagi' in values)
123
self.
failUnless
(output.count('Structure of message IDS_REORDERED_PLACEHOLDERS has changed'))
124
self.
failUnless
(output.count('Message IDS_CHANGED has changed')
[
all
...]
xmb_unittest.py
51
self.
failUnless
(output.count('Joi') and output.count('Yibbee'))
58
self.
failUnless
(output.count('Yibbee'))
59
self.
failUnless
(not output.count('Joi'))
78
self.
failUnless
(output.count('Joi'))
79
self.
failUnless
(not output.count('Yibbee'))
87
self.
failUnless
(output.count(
99
self.
failUnless
(output.count('OK ? </msg>'))
/external/chromium_org/tools/grit/grit/node/
message_unittest.py
33
self.
failUnless
(content == 'Hello USERNAME, how are you doing today?')
44
self.
failUnless
(content == 'Hello there USERNAME')
45
self.
failUnless
(msg.ws_at_start == ' ')
46
self.
failUnless
(msg.ws_at_end == ' ')
53
self.
failUnless
(msg_node.children[0].name == 'ph')
54
self.
failUnless
(msg_node.children[0].children[0].name == 'ex')
55
self.
failUnless
(msg_node.children[0].children[0].GetCdata() == 'Joi')
56
self.
failUnless
(msg_node.children[1].children[0].GetCdata() == '11')
57
self.
failUnless
(msg_node.ws_at_start == ' ')
58
self.
failUnless
(msg_node.ws_at_end == '\t\t'
[
all
...]
io_unittest.py
40
self.
failUnless
(root.ToRealPath(file_node.GetInputPath()) ==
47
self.
failUnless
('en' in cliques[i][0].clique)
48
self.
failUnless
('fr' in cliques[i][0].clique)
142
self.
failUnless
(outputs[0] in active)
143
self.
failUnless
(outputs[0].GetType() == 'rc_header')
144
self.
failUnless
(outputs[1] in active)
145
self.
failUnless
(outputs[1].GetType() == 'rc_all')
146
self.
failUnless
(outputs[2] not in active)
147
self.
failUnless
(outputs[2].GetType() == 'rc_all')
base_unittest.py
40
self.
failUnless
(node.GetCdata() == u' two spaces')
47
self.
failUnless
(node.GetCdata() == u'two spaces ')
60
self.
failUnless
(node.mixed_content[0] == u' two spaces ')
61
self.
failUnless
(node.mixed_content[2] == u' space before and after ')
62
self.
failUnless
(node.mixed_content[-1] == u' space before two after ')
87
self.
failUnless
(non_indented_xml == u'<message name="name">\n Hello '
92
self.
failUnless
(indented_xml == u' <message name="name">\n Hello '
120
self.
failUnless
(non_indented_xml ==
126
self.
failUnless
(indented_xml ==
131
self.
failUnless
(node.GetNodeById('name')
[
all
...]
structure_unittest.py
36
self.
failUnless
(transl.count('040704') and transl.count('110978'))
37
self.
failUnless
(transl.count('2005",IDC_STATIC'))
42
self.
failUnless
(node.RunCommandOnCurrentPlatform())
47
self.
failUnless
(node.RunCommandOnCurrentPlatform())
misc_unittest.py
97
self.
failUnless
(bingo_message not in active)
98
self.
failUnless
(hello_message in active)
99
self.
failUnless
(french_message in active)
104
self.
failUnless
(bingo_message in active)
105
self.
failUnless
(hello_message not in active)
106
self.
failUnless
(french_message not in active)
111
self.
failUnless
(bingo_message in active)
112
self.
failUnless
(hello_message not in active)
113
self.
failUnless
(french_message in active)
117
self.
failUnless
(grd.target_platform == sys.platform
[
all
...]
/external/chromium_org/tools/grit/grit/
pseudo_unittest.py
21
self.
failUnless
(pseudo.MapVowels('abebibobuby') ==
23
self.
failUnless
(pseudo.MapVowels('ABEBIBOBUBY') ==
28
self.
failUnless
(out == pseudo.MapVowels(u'hePelloPo', True))
32
self.
failUnless
(out == pseudo.MapVowels(
37
self.
failUnless
(out == pseudo.MapVowels(
47
self.
failUnless
(trans.GetPresentableContent() ==
util_unittest.py
28
self.
failUnless
(cls == None)
33
self.
failUnless
(cls == None)
38
self.
failUnless
(isinstance(cls, TestBaseClassToLoad))
43
self.
failUnless
(cls == None)
46
self.
failUnless
(util.CanonicalLanguage('en') == 'en')
47
self.
failUnless
(util.CanonicalLanguage('pt_br') == 'pt-BR')
48
self.
failUnless
(util.CanonicalLanguage('pt-br') == 'pt-BR')
49
self.
failUnless
(util.CanonicalLanguage('pt-BR') == 'pt-BR')
50
self.
failUnless
(util.CanonicalLanguage('pt/br') == 'pt-BR')
51
self.
failUnless
(util.CanonicalLanguage('pt/BR') == 'pt-BR'
[
all
...]
grit_runner_unittest.py
33
self.
failUnless
(output.count('disconnected'))
34
self.
failUnless
(output.count("'test'") == 0) # tool name doesn't occur
35
self.
failUnless
(output.count('bla'))
36
self.
failUnless
(output.count('simple-input.xml'))
clique_unittest.py
32
self.
failUnless
(c.GetMessage() == msg)
33
self.
failUnless
(c.GetId() == msg.GetId())
47
self.
failUnless
(lang in c.clique)
49
self.
failUnless
(c.MessageForLanguage('fr').GetRealContent() ==
58
self.
failUnless
(c.MessageForLanguage('zh-CN', True) != None)
61
self.
failUnless
(len(c.AllMessagesThatMatch(rex, False)) == 2)
62
self.
failUnless
(c.AllMessagesThatMatch(rex, True)[pseudo.PSEUDO_LANG] != None)
83
self.
failUnless
(description == 'alfaholl')
85
self.
failUnless
(description == 'vondakerling')
87
self.
failUnless
(description == 'ID: IDS_LL'
[
all
...]
xtb_reader_unittest.py
42
self.
failUnless
(len(messages[0][1]) == 1)
43
self.
failUnless
(messages[3][1][0]) # PROBLEM_REPORT placeholder
44
self.
failUnless
(messages[4][0] == '7729135689895381486')
45
self.
failUnless
(messages[4][1][7][1] == 'and another after a blank line.')
71
self.
failUnless
('Saelir %s',
/external/chromium_org/components/tools/metrics/
count_ifdefs_unittest.py
22
self.
failUnless
(count == 6)
26
self.
failUnless
(count == 4)
/external/chromium/googleurl/
PRESUBMIT_unittest.py
67
self.
failUnless
(len(PRESUBMIT.LocalChecks(api, MockOutputApi)) == 7)
71
self.
failUnless
(len(PRESUBMIT.LocalChecks(api, MockOutputApi)) == 3)
75
self.
failUnless
(len(PRESUBMIT.LocalChecks(api, MockOutputApi)) == 1)
76
self.
failUnless
(
81
self.
failUnless
(len(PRESUBMIT.LocalChecks(api, MockOutputApi)) == 4)
/external/chromium_org/tools/grit/grit/format/
rc_header_unittest.py
52
self.
failUnless
(output.count('IDS_GREETING10000'))
53
self.
failUnless
(output.count('ID_LOGO300'))
89
self.
failUnless
(output.count('IDS_FIRSTPRESENTSTRING10000'))
92
self.
failUnless
(output.count('IDS_LANGUAGESPECIFICSTRING10002'))
93
self.
failUnless
(output.count('IDS_THIRDPRESENTSTRING10003'))
rc_unittest.py
218
self.
failUnless
(file_contents.find('Hello Include!') != -1)
220
self.
failUnless
(file_contents.find('should be removed') == -1)
222
self.
failUnless
(file_contents.find('should be kept') != -1)
223
self.
failUnless
(file_contents.find('in the middle...') != -1)
224
self.
failUnless
(file_contents.find('at the end...') != -1)
226
self.
failUnless
(file_contents.find('nested true should be kept') != -1)
227
self.
failUnless
(file_contents.find('silbing true should be kept') != -1)
229
self.
failUnless
(file_contents.find('<if expr=') == -1)
230
self.
failUnless
(file_contents.find('</if>') == -1)
247
self.
failUnless
(en_file == input_file
[
all
...]
/external/chromium-trace/trace-viewer/third_party/pywebsocket/src/test/
test_dispatch.py
121
self.
failUnless
(dispatch._source_handler_file(
216
self.
failUnless
(str(e).find('No handler') != -1)
229
self.
failUnless
(str(e).find('Intentional') != -1,
242
self.
failUnless
('/origin_check' in disp._handler_suite_map)
243
self.
failUnless
(
245
self.
failUnless
('/sub/plain' in disp._handler_suite_map)
251
self.
failUnless
(
253
self.
failUnless
('/sub/plain' in disp._handler_suite_map)
262
self.
failUnless
('/exception_in_transfer' in disp._handler_suite_map)
263
self.
failUnless
('/plain' in disp._handler_suite_map
[
all
...]
Completed in 189 milliseconds
1
2