HomeSort by relevance Sort by last modified time
    Searched refs:self (Results 176 - 200 of 5920) sorted by null

1 2 3 4 5 6 78 91011>>

  /external/chromium_org/chrome/browser/resources/
test_presubmit.py 25 def setUp(self):
26 SuperMoxTestBase.setUp(self)
28 input_api = self.mox.CreateMockAnything()
30 output_api = self.mox.CreateMockAnything()
31 self.checker = js_checker.JSChecker(input_api, output_api)
33 def GetHighlight(self, line, error):
39 def ShouldFailConstCheck(self, line):
41 error = self.checker.ConstCheck(1, line)
42 self.assertNotEqual('', error,
44 self.assertEqual(self.GetHighlight(line, error), 'const'
    [all...]
  /external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/style/
patchreader_unittest.py 44 def __init__(self):
45 self.passed_to_process_file = []
47 self.delete_only_file_count = 0
50 def process_file(self, file_path, line_numbers):
51 self.passed_to_process_file.append((file_path, line_numbers))
53 def count_delete_only_file(self):
54 self.delete_only_file_count += 1
56 def setUp(self):
57 file_reader = self.MockTextFileReader()
58 self._file_reader = file_reade
    [all...]
  /external/chromium_org/tools/json_to_struct/
struct_generator_test.py 11 def testGenerateIntField(self):
12 self.assertEquals('const int foo_bar',
15 def testGenerateStringField(self):
16 self.assertEquals('const char* const bar_foo',
19 def testGenerateString16Field(self):
20 self.assertEquals('const wchar_t* const foo_bar',
23 def testGenerateEnumField(self):
24 self.assertEquals('const MyEnumType foo_foo',
29 def testGenerateArrayField(self):
30 self.assertEquals('const int * bar_bar;\n
    [all...]
  /external/chromium_org/tools/telemetry/telemetry/core/backends/chrome/
inspector_console.py 8 def __init__(self, inspector_backend):
9 self._inspector_backend = inspector_backend
10 self._inspector_backend.RegisterDomain(
12 self._OnNotification,
13 self._OnClose)
14 self._message_output_stream = None
15 self._last_message = None
16 self._console_enabled = False
18 def _OnNotification(self, msg):
23 self._last_message = 'At %s:%i: %s' %
    [all...]
  /external/chromium_org/tools/telemetry/telemetry/core/
possible_browser.py 10 def __init__(self, browser_type, finder_options):
11 self._browser_type = browser_type
12 self._finder_options = finder_options
14 def __repr__(self):
15 return 'PossibleBrowser(browser_type=%s)' % self.browser_type
18 def browser_type(self):
19 return self._browser_type
22 def finder_options(self):
23 return self._finder_options
25 def Create(self)
    [all...]
  /external/chromium_org/tools/telemetry/telemetry/page/
gtest_test_results.py 13 def __init__(self, output_stream):
14 super(GTestTestResults, self).__init__()
15 self._output_stream = output_stream
16 self._timestamp = None
18 def _GetMs(self):
19 return (time.time() - self._timestamp) * 1000
22 def num_errors(self):
23 return len(self.errors) + len(self.failures)
33 def _emitFailure(self, test, err)
    [all...]
page_test_results_unittest.py 13 def __init__(self):
14 super(NonPrintingPageTestResults, self).__init__()
16 def _PrintPerfResult(self, *args):
20 def setUp(self):
21 self.page_set = page_set.PageSet.FromDict({
32 def pages(self):
33 return self.page_set.pages
35 def CreateException(self):
41 def test_failures(self):
43 results.AddFailure(self.pages[0], self.CreateException()
    [all...]
page_filter_unittest.py 11 def __init__(self, page_filter, page_filter_exclude):
12 self.page_filter = page_filter
13 self.page_filter_exclude = page_filter_exclude
14 self.page_label_filter = None
15 self.page_label_filter_exclude = None
18 def __init__(self, page_label_filter, page_label_filter_exclude):
19 self.page_filter = None
20 self.page_filter_exclude = None
21 self.page_label_filter = page_label_filter
22 self.page_label_filter_exclude = page_label_filter_exclud
    [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
test_float.py 31 def test_float(self):
32 self.assertEqual(float(3.14), 3.14)
33 self.assertEqual(float(314), 314.0)
34 self.assertEqual(float(314L), 314.0)
35 self.assertEqual(float(" 3.14 "), 3.14)
36 self.assertRaises(ValueError, float, " 0x3.1 ")
37 self.assertRaises(ValueError, float, " -0x3.p-1 ")
38 self.assertRaises(ValueError, float, " +0x3.p-1 ")
39 self.assertRaises(ValueError, float, "++3.14")
40 self.assertRaises(ValueError, float, "+-3.14"
    [all...]
test_textwrap.py 20 def show(self, textin):
31 def check(self, result, expect):
32 self.assertEqual(result, expect,
34 self.show(expect), self.show(result)))
36 def check_wrap(self, text, width, expect, **kwargs):
38 self.check(result, expect)
40 def check_split(self, text, expect):
41 result = self.wrapper._split(text)
42 self.assertEqual(result, expect
    [all...]
test_unicodedata.py 25 def test_method_checksum(self):
66 self.assertEqual(result, self.expectedchecksum)
70 def setUp(self):
74 self.db = unicodedata
76 def tearDown(self):
77 del self.db
84 def test_function_checksum(self):
92 str(self.db.digit(char, -1)),
93 str(self.db.numeric(char, -1))
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
test_float.py 31 def test_float(self):
32 self.assertEqual(float(3.14), 3.14)
33 self.assertEqual(float(314), 314.0)
34 self.assertEqual(float(314L), 314.0)
35 self.assertEqual(float(" 3.14 "), 3.14)
36 self.assertRaises(ValueError, float, " 0x3.1 ")
37 self.assertRaises(ValueError, float, " -0x3.p-1 ")
38 self.assertRaises(ValueError, float, " +0x3.p-1 ")
39 self.assertRaises(ValueError, float, "++3.14")
40 self.assertRaises(ValueError, float, "+-3.14"
    [all...]
test_textwrap.py 20 def show(self, textin):
31 def check(self, result, expect):
32 self.assertEqual(result, expect,
34 self.show(expect), self.show(result)))
36 def check_wrap(self, text, width, expect, **kwargs):
38 self.check(result, expect)
40 def check_split(self, text, expect):
41 result = self.wrapper._split(text)
42 self.assertEqual(result, expect
    [all...]
test_unicodedata.py 25 def test_method_checksum(self):
66 self.assertEqual(result, self.expectedchecksum)
70 def setUp(self):
74 self.db = unicodedata
76 def tearDown(self):
77 del self.db
84 def test_function_checksum(self):
92 str(self.db.digit(char, -1)),
93 str(self.db.numeric(char, -1))
    [all...]
  /external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/coverage/
bytecode.py 7 def __init__(self):
9 self.offset = -1
12 self.op = -1
15 self.arg = -1
18 self.next_offset = -1
21 self.jump_to = -1
30 def __init__(self, code):
31 self.code = code
32 self.offset = 0
35 def __getitem__(self, i)
    [all...]
  /external/chromium_org/tools/gyp/pylib/gyp/
MSVSSettings_test.py 16 def setUp(self):
17 self.stderr = StringIO.StringIO()
19 def _ExpectedWarnings(self, expected):
21 self.stderr.seek(0)
22 actual = self.stderr.read().split('\n')
24 self.assertEqual(sorted(expected), sorted(actual))
26 def testValidateMSVSSettings_tool_names(self):
37 self.stderr)
38 self._ExpectedWarnings([
42 def testValidateMSVSSettings_settings(self)
    [all...]
  /external/chromium_org/tools/telemetry/telemetry/core/timeline/
bounds.py 7 def __init__(self):
8 self.is_empty_ = True
9 self.min_ = None
10 self.max_ = None
13 def is_empty(self):
14 return self.is_empty_
17 def min(self):
18 if self.is_empty_:
20 return self.min_
23 def max(self)
    [all...]
  /external/chromium_org/v8/tools/testrunner/objects/
peer.py 30 def __init__(self, address, jobs, rel_perf, pubkey):
31 self.address = address # string: IP address
32 self.jobs = jobs # integer: number of CPUs
33 self.relative_performance = rel_perf
34 self.pubkey = pubkey # string: pubkey's fingerprint
35 self.shells = set() # set of strings
36 self.needed_work = 0
37 self.assigned_work = 0
38 self.tests = [] # list of TestCase objects
39 self.trusting_me = False # This peer trusts my public key
    [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/wsgiref/
handlers.py 65 traceback_limit = None # Print entire traceback to self.get_stderr()
76 def run(self, application):
78 # Note to self: don't move the close()! Asynchronous servers shouldn't
84 self.setup_environ()
85 self.result = application(self.environ, self.start_response)
86 self.finish_response()
89 self.handle_error()
92 self.close(
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/wsgiref/
handlers.py 65 traceback_limit = None # Print entire traceback to self.get_stderr()
76 def run(self, application):
78 # Note to self: don't move the close()! Asynchronous servers shouldn't
84 self.setup_environ()
85 self.result = application(self.environ, self.start_response)
86 self.finish_response()
89 self.handle_error()
92 self.close(
    [all...]
  /external/chromium_org/chrome/browser/extensions/
PRESUBMIT_test.py 14 def __init__(self):
15 self.lines = []
17 def info(self, message):
18 self.lines.append(message)
20 def debug(self, message):
21 self.lines.append(message)
24 def __init__(self):
25 self.re = re
26 self.os_path = os.path
27 self.files = [
    [all...]
  /external/chromium_org/chrome/common/extensions/docs/server2/
host_file_system_iterator_test.py 32 def setUp(self):
38 self._branch_utility = TestBranchUtility.CreateWithCannedData()
39 self._iterator = HostFileSystemIterator(
41 self._branch_utility)
43 def _GetStableChannelInfo(self,version):
44 return self._branch_utility.GetStableChannelInfo(version)
46 def _GetChannelInfo(self, channel_name):
47 return self._branch_utility.GetChannelInfo(channel_name)
49 def testAscending(self):
53 self.assertEqual
    [all...]
  /external/chromium_org/chrome/test/functional/
netflix.py 32 def __init__(self, pyauto):
33 self._pyauto = pyauto
35 def _IsNetflixPluginEnabled(self):
37 return [x for x in self._pyauto.GetPluginsInfo().Plugins() \
40 def _LoginToNetflix(self):
42 credentials = self._pyauto.GetPrivateInfo()['test_netflix_acct']
43 board_name = self._pyauto.ChromeOSBoard()
46 self._pyauto.NavigateToURL(credentials['login_url'])
52 self._pyauto.assertEqual(self._pyauto.ExecuteJavascript(login_js), 'ok'
    [all...]
  /external/chromium_org/tools/grit/grit/format/policy_templates/writers/
admx_writer_unittest.py 24 def _CreateDocumentElement(self):
29 def setUp(self):
42 self.writer = admx_writer.GetWriter(config)
43 self.writer.Init()
45 def _GetPoliciesElement(self, doc):
47 self.assertTrue(node_list.length == 1)
50 def _GetCategoriesElement(self, doc):
52 self.assertTrue(node_list.length == 1)
55 def testEmpty(self):
56 self.writer.BeginTemplate(
    [all...]
  /external/chromium_org/tools/telemetry/telemetry/core/heap/
live_heap_object.py 21 def __init__(self, object_id, type_string, class_name):
29 self.object_id = object_id
30 self.type_string = type_string
31 self.class_name = class_name
32 self.edges_to = []
33 self.edges_from = []
34 self.string = ''
35 self.name = ''
37 def AddEdgeTo(self, edge):
43 self.edges_to.append(edge
    [all...]

Completed in 2072 milliseconds

1 2 3 4 5 6 78 91011>>