Searched refs:self (Results 1 - 25 of 4083) sorted by relevance

1234567891011>>

/external/chromium_org/third_party/WebKit/Source/devtools/front_end/common/
H A DWebInspector.js7 self.WebInspector = {}
/external/chromium_org/tools/grit/grit/node/
H A Dvariant.py19 def MandatoryAttributes(self):
22 def DefaultAttributes(self):
28 def _ContentType(self):
29 if self.attrs.has_key('file'):
30 return self._CONTENT_TYPE_NONE
32 return self._CONTENT_TYPE_CDATA
34 def GetEncodingToUse(self):
35 if self.attrs['encoding'] == '':
36 return self.parent.attrs['encoding']
38 return self
[all...]
/external/chromium_org/tools/telemetry/telemetry/core/backends/chrome/
H A Dinspector_page_unittest.py9 def testPageNavigateToNormalUrl(self):
10 self.Navigate('blank.html')
12 def testCustomActionToNavigate(self):
13 self.Navigate('page_with_link.html')
14 self.assertEquals(
15 self._tab.EvaluateJavaScript('document.location.pathname;'),
18 self._tab.ExecuteJavaScript('document.getElementById("clickme").click();')
19 self._tab.WaitForNavigate()
21 self.assertEquals(
22 self
[all...]
/external/chromium_org/tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/
H A Dtop_20.py11 def __init__(self, url, page_set, name=''):
12 super(Top20Page, self).__init__(url=url, page_set=page_set, name=name)
13 self.archive_data_file = '../data/chrome_proxy_top_20.json'
19 def __init__(self):
20 super(Top20PageSet, self).__init__(
24 self.AddPage(Top20Page('https://www.google.com/#hl=en&q=barack+obama',
25 self))
28 self.AddPage(Top20Page('http://www.youtube.com', self))
31 self
[all...]
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/config/
H A Dports_mock.py31 def name(self):
34 def check_webkit_style_command(self):
37 def run_python_unittests_command(self):
40 def run_perl_unittests_command(self):
43 def run_webkit_unit_tests_command(self):
46 def run_webkit_tests_command(self):
49 def run_bindings_tests_command(self):
/external/lldb/test/
H A Dlldbbench.py34 def __enter__(self):
38 return self.start()
40 def __exit__(self, type, value, tb):
44 self.stop()
46 def reset(self):
47 self.__laps__ = 0
48 self.__total_elapsed__ = 0.0
49 self.__start__ = None
50 self.__stop__ = None
51 self
[all...]
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/system/
H A Dplatforminfo_mock.py31 def __init__(self, os_name='mac', os_version='snowleopard', is_highdpi=False):
32 self.os_name = os_name
33 self.os_version = os_version
34 self._is_highdpi = is_highdpi
36 def is_mac(self):
37 return self.os_name == 'mac'
39 def is_linux(self):
40 return self.os_name == 'linux'
42 def is_win(self):
43 return self
[all...]
/external/chromium_org/tools/telemetry/telemetry/timeline/
H A Devent.py15 def __init__(self, category, name, start, duration, thread_start=None,
17 self.category = category
18 self.name = name
19 self.start = start
20 self.duration = duration
21 self.thread_start = thread_start
22 self.thread_duration = thread_duration
23 self.args = args
26 def end(self):
27 return self
[all...]
/external/chromium_org/chrome/test/ispy/common/
H A Dispy_utils_unittest.py18 def setUp(self):
20 self.bucket = mock_cloud_bucket.MockCloudBucket()
21 self.ispy_utils = ispy_utils.ISpyUtils(self.bucket)
22 self.white = Image.new('RGBA', (25, 25), (255, 255, 255, 255))
23 self.red = Image.new('RGBA', (25, 25), (255, 0, 0, 255))
24 self.black = Image.new('RGBA', (25, 25), (0, 0, 0, 255))
25 self.masked = Image.new('RGBA', (25, 25), (210, 0, 0, 255))
27 def testUploadImage(self):
28 self
[all...]
/external/chromium_org/tools/gyp/pylib/gyp/
H A Dinput_test.py15 def setUp(self):
16 self.nodes = {}
18 self.nodes[x] = gyp.input.DependencyGraphNode(x)
20 def _create_dependency(self, dependent, dependency):
24 def test_no_cycle_empty_graph(self):
25 for label, node in self.nodes.iteritems():
26 self.assertEquals([], node.FindCycles())
28 def test_no_cycle_line(self):
29 self._create_dependency(self
[all...]
/external/chromium_org/tools/telemetry/telemetry/core/
H A Dtab_list.py5 def __init__(self, tab_list_backend):
6 self._tab_list_backend = tab_list_backend
8 def New(self, timeout=None):
9 return self._tab_list_backend.New(timeout)
11 def __iter__(self):
12 return self._tab_list_backend.__iter__()
14 def __len__(self):
15 return self._tab_list_backend.__len__()
17 def __getitem__(self, index):
18 return self
[all...]
/external/lldb/test/lang/c/anonymous/
H A DTestAnonymous.py14 def test_expr_nest_with_dsym(self):
15 self.buildDsym()
16 self.expr_nest()
19 def test_expr_child_with_dsym(self):
20 self.buildDsym()
21 self.expr_child()
24 def test_expr_grandchild_with_dsym(self):
25 self.buildDsym()
26 self.expr_grandchild()
29 def test_expr_parent(self)
[all...]
/external/chromium_org/third_party/cython/src/Cython/Tests/
H A DTestCodeWriter.py17 def t(self, codestr):
18 self.assertCode(codestr, self.fragment(codestr).root)
20 def test_print(self):
21 self.t(u"""
27 def test_if(self):
28 self.t(u"if x:\n pass")
30 def test_ifelifelse(self):
31 self.t(u"""
42 def test_def(self)
[all...]
/external/chromium_org/third_party/tlslite/tlslite/integration/
H A Dtlsasyncdispatchermixin.py63 def __init__ (self, server, conn, addr):
64 http_server.http_channel.__init__(self, server, conn, addr)
65 TLSAsyncDispatcherMixIn.__init__(self, conn)
66 self.tlsConnection.ignoreAbruptClose = True
67 self.setServerHandshakeOp(certChain=certChain,
82 def __init__(self, sock=None):
83 AsyncStateMachine.__init__(self)
86 self.tlsConnection = TLSConnection(sock)
92 for cl in self.__class__.__bases__:
94 self
[all...]
/external/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/map/
H A DTestDataFormatterLibccMap.py17 def test_with_dsym_and_run_command(self):
19 self.buildDsym()
20 self.data_formatter_commands()
24 def test_with_dwarf_and_run_command(self):
26 self.buildDwarf()
27 self.data_formatter_commands()
29 def setUp(self):
31 TestBase.setUp(self)
33 def data_formatter_commands(self):
35 self
[all...]
/external/lldb/test/functionalities/data-formatter/data-formatter-stl/libcxx/multimap/
H A DTestDataFormatterLibccMultiMap.py17 def test_with_dsym_and_run_command(self):
19 self.buildDsym()
20 self.data_formatter_commands()
24 def test_with_dwarf_and_run_command(self):
26 self.buildDwarf()
27 self.data_formatter_commands()
29 def setUp(self):
31 TestBase.setUp(self)
33 def data_formatter_commands(self):
35 self
[all...]
/external/chromium_org/chrome/common/extensions/docs/server2/
H A Dcache_chain_object_store_test.py11 def setUp(self):
12 self._first = TestObjectStore('first', init={
15 self._second = TestObjectStore('second', init={
19 self._third = TestObjectStore('third', init={
24 self._store = CacheChainObjectStore(
25 (self._first, self._second, self._third))
27 def testGetFromFirstLayer(self):
28 self
[all...]
H A Dpath_canonicalizer_test.py18 def setUp(self):
19 self._path_canonicalizer = PathCanonicalizer(
24 def testSpecifyCorrectly(self):
25 self._AssertIdentity('extensions/browserAction')
26 self._AssertIdentity('extensions/storage')
27 self._AssertIdentity('extensions/blah')
28 self._AssertIdentity('extensions/index')
29 self._AssertIdentity('extensions/whats_new')
30 self._AssertIdentity('apps/storage')
31 self
[all...]
H A Ddata_source.py19 def __init__(self, server_instance, request):
22 def GetRefreshPaths(self):
30 def Refresh(self, path=None):
33 raise NotImplementedError(self.__class__)
35 def get(self, key):
39 raise NotImplementedError(self.__class__)
/external/chromium_org/mojo/public/tools/bindings/pylib/mojom/
H A Derror.py8 def __init__(self, filename, message, lineno=None, addenda=None, **kwargs):
13 Exception.__init__(self, **kwargs)
14 self.filename = filename
15 self.message = message
16 self.lineno = lineno
17 self.addenda = addenda
19 def __str__(self):
20 if self.lineno:
21 s = "%s:%d: Error: %s" % (self.filename, self
[all...]
/external/chromium_org/tools/telemetry/telemetry/core/heap/
H A Dlive_heap_object.py21 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
[all...]
/external/chromium_org/tools/telemetry/telemetry/core/platform/power_monitor/
H A Dpower_monitor_controller.py13 def __init__(self, power_monitors):
14 super(PowerMonitorController, self).__init__()
15 self._cascading_power_monitors = power_monitors
16 self._active_monitor = None
18 def _AsyncPowerMonitor(self):
20 (x for x in self._cascading_power_monitors if x.CanMonitorPower()),
23 def CanMonitorPower(self):
24 return bool(self._AsyncPowerMonitor())
26 def StartMonitoringPower(self, browser):
27 self
[all...]
/external/chromium_org/third_party/tlslite/tlslite/
H A Dsessioncache.py28 def __init__(self, maxEntries=10000, maxAge=14400):
40 self.lock = threading.Lock()
43 self.entriesDict = {}
46 self.entriesList = [(None,None)] * maxEntries
48 self.firstIndex = 0
49 self.lastIndex = 0
50 self.maxAge = maxAge
52 def __getitem__(self, sessionID):
53 self.lock.acquire()
55 self
[all...]
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/
H A Dlayout_tests_mover_unittest.py41 def __init__(self, **kwargs):
44 super(MockPort, self).__init__(host, host.port_factory.all_port_names()[0], **kwargs)
46 host.filesystem.maybe_make_directory(self._absolute_path('platform'))
47 host.filesystem.maybe_make_directory(self._absolute_path('existing_directory'))
48 host.filesystem.write_text_file(self._absolute_path('existing_file.txt'), '')
49 host.filesystem.write_text_file(self._absolute_path('VirtualTestSuites'), '[]')
50 host.filesystem.write_text_file(self._absolute_path('TestExpectations'), """
55 host.filesystem.write_text_file(self._absolute_path('existing_directory_with_contents', 'test.html'), '')
56 host.filesystem.write_text_file(self._absolute_path('origin', 'path', 'test.html'), """
64 host.filesystem.write_text_file(self
[all...]
/external/chromium-trace/trace-viewer/third_party/closure_linter/closure_linter/common/
H A Derrorhandler.py31 def __init__(self):
32 if self.__class__ == ErrorHandler:
35 def HandleFile(self, filename, first_token):
43 def HandleError(self, error):
50 def FinishFile(self):
56 def GetErrors(self):

Completed in 776 milliseconds

1234567891011>>