/external/v8/test/cctest/ |
H A D | testcfg.py | 37 def __init__(self, path, executable, mode, raw_name, dependency, context, variant_flags): 38 super(CcTestCase, self).__init__(context, path, mode) 39 self.executable = executable 40 self.raw_name = raw_name 41 self.dependency = dependency 42 self.variant_flags = variant_flags 44 def GetLabel(self): 45 return "%s %s %s" % (self.mode, self.path[-2], self [all...] |
/external/v8/test/sputnik/ |
H A D | testcfg.py | 38 def __init__(self, case, path, context, mode): 39 super(SputnikTestCase, self).__init__(context, path, mode) 40 self.case = case 41 self.tmpfile = None 42 self.source = None 44 def IsNegative(self): 45 return '@negative' in self.GetSource() 47 def IsFailureOutput(self, output): 53 def BeforeRun(self): 54 self [all...] |
/external/webkit/Tools/QueueStatusServer/handlers/ |
H A D | statusbubble_unittest.py | 37 def __init__(self): 38 self.id = 1 40 def status_for_queue(self, queue): 43 def position_in_queue(self, queue): 48 def test_build_bubble(self): 54 self.assertEqual(bubble_dict["name"], "mac") 55 self.assertEqual(bubble_dict["attachment_id"], 1) 56 self.assertEqual(bubble_dict["queue_position"], 1) 57 self.assertEqual(bubble_dict["state"], "none") 58 self [all...] |
/external/webkit/Tools/Scripts/webkitpy/common/checkout/ |
H A D | scm_unittest.py | 183 def setUp(self): 184 self.orig_cwd = os.path.abspath(os.getcwd()) 185 self.orig_abspath = os.path.abspath 189 self.output = OutputCapture() 190 self.output.capture_output() 192 def tearDown(self): 193 os.chdir(self.orig_cwd) 194 os.path.abspath = self.orig_abspath 195 self.output.restore_output() 197 def test_find_checkout_root(self) [all...] |
H A D | scm.py | 104 def __init__(self, message): 105 self.message_lines = message[first_non_empty_line_after_index(message, 0):] 107 def body(self, lstrip=False): 108 lines = self.message_lines[first_non_empty_line_after_index(self.message_lines, 1):] 113 def description(self, lstrip=False, strip_url=False): 114 line = self.message_lines[0] 121 def message(self): 122 return "\n".join(self.message_lines) + "\n" 126 def __init__(self, script_arg [all...] |
/external/llvm/utils/lit/lit/ |
H A D | LitConfig.py | 20 def __init__(self, progname, path, quiet, 26 self.progname = progname 28 self.path = list(map(str, path)) 29 self.quiet = bool(quiet) 30 self.useValgrind = bool(useValgrind) 31 self.valgrindLeakCheck = bool(valgrindLeakCheck) 32 self.valgrindUserArgs = list(valgrindArgs) 33 self.useTclAsSh = bool(useTclAsSh) 34 self.noExecute = noExecute 35 self [all...] |
/external/webkit/Tools/Scripts/webkitpy/style/ |
H A D | filter_unittest.py | 56 def test_validate_filter_rules(self): 75 self.assertRaises(ValueError, validate_filter_rules, 87 def test_init(self): 91 self.assertEquals(["+"], filter._filter_rules) 93 def test_init_default_arguments(self): 96 self.assertEquals([], filter._filter_rules) 98 def test_str(self): 101 self.assertEquals(str(filter), "+a,-b") 103 def test_eq(self): 111 self [all...] |
/external/v8/test/preparser/ |
H A D | testcfg.py | 37 def __init__(self, root, path, executable, mode, context): 38 super(PreparserTestCase, self).__init__(context, path, mode) 39 self.executable = executable 40 self.root = root 42 def GetLabel(self): 43 return "%s %s %s" % (self.mode, self.path[-2], self.path[-1]) 45 def GetName(self): 46 return self [all...] |
/external/webkit/Tools/Scripts/webkitpy/common/config/ |
H A D | ports_unittest.py | 36 def test_mac_port(self): 37 self.assertEquals(MacPort.name(), "Mac") 38 self.assertEquals(MacPort.flag(), "--port=mac") 39 self.assertEquals(MacPort.run_webkit_tests_command(), [WebKitPort.script_path("run-webkit-tests")]) 40 self.assertEquals(MacPort.build_webkit_command(), [WebKitPort.script_path("build-webkit")]) 41 self.assertEquals(MacPort.build_webkit_command(build_style="debug"), [WebKitPort.script_path("build-webkit"), "--debug"]) 42 self.assertEquals(MacPort.build_webkit_command(build_style="release"), [WebKitPort.script_path("build-webkit"), "--release"]) 48 self.assertTrue(TestIsLeopard.is_leopard()) 50 def test_gtk_port(self): 51 self [all...] |
/external/webkit/Tools/Scripts/webkitpy/common/net/ |
H A D | networktransaction_unittest.py | 39 def test_success(self): 41 self.assertEqual(transaction.run(lambda: 42), 42) 43 def _raise_exception(self): 44 raise self.exception 46 def test_exception(self): 51 transaction.run(lambda: self._raise_exception()) 55 self.assertEqual(e, self.exception) 56 self.assertTrue(did_throw_exception) 57 self [all...] |
H A D | failuremap.py | 32 def __init__(self): 33 self._failures = [] 35 def add_regression_window(self, builder, regression_window): 36 self._failures.append({ 41 def is_empty(self): 42 return not self._failures 44 def failing_revisions(self): 46 for failure_info in self._failures] 49 def builders_failing_for(self, revision): 50 return self [all...] |
/external/webkit/Tools/Scripts/webkitpy/common/system/ |
H A D | logtesting.py | 44 using self.assertMessages() below. 48 def __init__(self, test_case): 55 self._test_case = test_case 56 self.messages = [] 63 def write(self, message): 64 self.messages.append(message) 66 def flush(self): 69 def assertMessages(self, messages): 75 self._test_case.assertEquals(messages, self [all...] |
H A D | ospath_unittest.py | 36 os_path_abspath = lambda self, path: path 38 def _rel_path(self, path, abs_start_path): 39 return relpath(path, abs_start_path, self.os_path_abspath) 41 def test_same_path(self): 42 rel_path = self._rel_path("WebKit", "WebKit") 43 self.assertEquals(rel_path, "") 45 def test_long_rel_path(self): 50 rel_path = self._rel_path(path, start_path) 51 self.assertEquals(expected_rel_path, rel_path) 53 def test_none_rel_path(self) [all...] |
/external/webkit/Tools/Scripts/webkitpy/layout_tests/port/ |
H A D | qt.py | 46 def __init__(self, **kwargs): 48 WebKitPort.__init__(self, **kwargs) 50 def baseline_search_path(self): 59 return map(self._webkit_baseline_path, port_names) 61 def _tests_for_other_platforms(self): 72 def _path_to_apache_config_file(self): 74 return self._filesystem.join(self.layout_tests_dir(), 'http', 'conf', 77 def _shut_down_http_server(self, server_pid): 89 self [all...] |
H A D | webkit.py | 53 def __init__(self, **kwargs): 54 base.Port.__init__(self, **kwargs) 55 self._cached_apache_path = None 59 if not hasattr(self._options, "pixel_tests") or self._options.pixel_tests == None: 60 self._options.pixel_tests = False 62 def baseline_path(self): 63 return self._webkit_baseline_path(self._name) 65 def baseline_search_path(self) [all...] |
H A D | chromium_win_unittest.py | 42 def __init__(self): 43 self.register_cygwin = True 44 self.results_directory = '/' 46 def setUp(self): 47 self.orig_platform = sys.platform 49 def tearDown(self): 50 sys.platform = self.orig_platform 51 self._port = None 53 def port_maker(self, platform): 58 def _mock_path_from_chromium_base(self, *comp [all...] |
/external/webkit/Tools/Scripts/webkitpy/style/checkers/ |
H A D | xml_unittest.py | 35 def assert_no_error(self, xml_data): 37 self.fail('Unexpected error: %d %s %d %s' % (line_number, category, confidence, message)) 41 def assert_error(self, expected_line_number, expected_category, xml_data): 43 self.had_error = True 44 self.assertEquals(expected_line_number, line_number) 45 self.assertEquals(expected_category, category) 48 self.assertTrue(self.had_error) 50 def mock_handle_style_error(self): 53 def test_conflict_marker(self) [all...] |
/external/webkit/Tools/Scripts/webkitpy/common/ |
H A D | memoized_unittest.py | 35 def __init__(self): 36 self.callCount = 0 39 def memoized_add(self, argument): 41 self.callCount += 1 48 def test_caching(self): 51 self.assertEqual(test.memoized_add(1), 2) 52 self.assertEqual(test.callCount, 1) 53 self.assertEqual(test.memoized_add(1), 2) 54 self.assertEqual(test.callCount, 1) 57 self [all...] |
/external/webkit/Tools/Scripts/webkitpy/test/ |
H A D | echo_unittest.py | 32 def test_basic(self): 34 self.assertStdout('foo bar baz\n') 36 def test_no_newline(self): 38 self.assertStdout('foo bar baz') 40 def test_unicode(self): 42 self.assertStdout(u'WebKit \u2661 Tor Arne Vestb\u00F8!\n') 44 def test_argument_order(self): 46 self.assertStdout('foo -n bar\n') 48 def test_empty_arguments(self): 52 self [all...] |
/external/webkit/Tools/Scripts/webkitpy/tool/ |
H A D | multicommandtool.py | 49 def __init__(self, help_text, argument_names=None, options=None, long_help=None, requires_local_commits=False): 50 self.help_text = help_text 51 self.long_help = long_help 52 self.argument_names = argument_names 53 self.required_arguments = self._parse_required_arguments(argument_names) 54 self.options = options 55 self.requires_local_commits = requires_local_commits 56 self._tool = None 59 self [all...] |
/external/sonivox/jet_tools/JetCreator/ |
H A D | JetCtrls.py | 32 def __init__(self, parent, id=-1,value=wx.EmptyString,pos=wx.DefaultPosition,size=wx.DefaultSize,style=wx.SP_ARROW_KEYS,min=0,max=100,initial=0):
33 wx.SpinCtrl.__init__(self, parent, id=id,value=value,pos=(pos[0]-MacOffset(),pos[1]),size=size,style=style,min=min,max=max,initial=initial)
35 def SetValue(self, val):
38 wx.SpinCtrl.SetValue(self, int(val))
40 wx.SpinCtrl.SetValue(self, val)
42 wx.SpinCtrl.SetValue(self, 0)
46 def __init__(self, parent, id=-1,value=wx.EmptyString,pos=wx.DefaultPosition,size=wx.DefaultSize,style=wx.SP_ARROW_KEYS,min=0,max=100,initial=0):
47 wx.SpinCtrl.__init__(self, parent, id=id,value=value,pos=(pos[0]-MacOffset(),pos[1]),size=size,style=style,min=min,max=max,initial=initial)
49 def SetValue(self, val):
52 wx.SpinCtrl.SetValue(self, in [all...] |
/external/webkit/Tools/Scripts/webkitpy/common/net/buildbot/ |
H A D | buildbot.py | 55 def __init__(self, name, buildbot): 56 self._name = name 57 self._buildbot = buildbot 58 self._builds_cache = {} 59 self._revision_to_build_number = None 60 self._browser = Browser() 61 self._browser.set_handle_robots(False) # The builder pages are excluded by robots.txt 63 def name(self): 64 return self._name 66 def results_url(self) [all...] |
/external/srec/srec/Semproc/src/ |
H A D | ExpressionParser.c | 31 ESR_ReturnCode handle_NewStatement(ExpressionParser *self); 32 ESR_ReturnCode handle_Identifier(ExpressionParser *self); 33 ESR_ReturnCode handle_OpAssign(ExpressionParser *self); 34 ESR_ReturnCode handle_OpConcat(ExpressionParser *self); 35 ESR_ReturnCode handle_LBracket(ExpressionParser *self); 36 ESR_ReturnCode handle_ParamDelim(ExpressionParser *self); 37 ESR_ReturnCode handle_RBracket(ExpressionParser *self); 38 ESR_ReturnCode handle_ConditionalExpression_IfTrue(ExpressionParser *self); 39 ESR_ReturnCode handle_ConditionalExpression_Else(ExpressionParser *self); 40 ESR_ReturnCode handle_EndOfStatement(ExpressionParser *self, SymbolTabl 43 EP_Init(ExpressionParser** self) argument 78 EP_Free(ExpressionParser* self) argument 179 handle_NewStatement(ExpressionParser* self) argument 189 handle_Identifier(ExpressionParser* self) argument 211 handle_OpAssign(ExpressionParser* self) argument 227 handle_OpConcat(ExpressionParser* self) argument 246 handle_LBracket(ExpressionParser* self) argument 287 handle_ParamDelim(ExpressionParser* self) argument 301 handle_RBracket(ExpressionParser* self) argument 314 handle_ConditionalExpression_IfTrue(ExpressionParser* self) argument 333 handle_ConditionalExpression_Else(ExpressionParser* self) argument 347 handle_EndOfStatement(ExpressionParser* self, SymbolTable* symtable, ExpressionEvaluator* evaluator) argument 432 EP_RegisterFunction(ExpressionParser* self, const LCHAR* name, void* userData, SR_SemprocFunctionPtr pfunction) argument 450 EP_LookUpFunction(ExpressionParser* self, LCHAR* name, void** userData, SR_SemprocFunctionPtr* pfunction) argument [all...] |
/external/webkit/Tools/Scripts/webkitpy/common/net/irc/ |
H A D | ircbot.py | 37 def irc_message_received(self, nick, message): 40 def irc_nickname(self): 43 def irc_password(self): 49 def __init__(self, 52 self._message_queue = message_queue 53 self._delegate = delegate 55 self, 59 self._delegate.irc_password() 61 self._delegate.irc_nickname(), 62 self [all...] |
/external/webkit/Tools/Scripts/webkitpy/tool/bot/ |
H A D | irc_command_unittest.py | 35 def test_eliza(self): 40 def test_whois(self): 42 self.assertEquals("tom: Usage: BUGZILLA_EMAIL", 44 self.assertEquals("tom: Usage: BUGZILLA_EMAIL", 46 self.assertEquals("tom: Sorry, I don't know unknown@example.com. Maybe you could introduce me?", 48 self.assertEquals("tom: tonyg@chromium.org is tonyg-cr. Why do you ask?", 50 self.assertEquals("tom: vicki@apple.com hasn't told me their nick. Boo hoo :-(",
|