当前位置: 首页>>代码示例>>Python>>正文


Python Driver.__init__方法代码示例

本文整理汇总了Python中webkitpy.layout_tests.port.Driver.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python Driver.__init__方法的具体用法?Python Driver.__init__怎么用?Python Driver.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在webkitpy.layout_tests.port.Driver的用法示例。


在下文中一共展示了Driver.__init__方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from webkitpy.layout_tests.port import Driver [as 别名]
# 或者: from webkitpy.layout_tests.port.Driver import __init__ [as 别名]
    def __init__(self, port, worker_number):
        Driver.__init__(self, port, worker_number)
        self._driver_tempdir = port._filesystem.mkdtemp(prefix="%s-" % self._port.driver_name())
        # WebKitTestRunner can report back subprocess crashes by printing
        # "#CRASHED - PROCESSNAME".  Since those can happen at any time
        # and ServerProcess won't be aware of them (since the actual tool
        # didn't crash, just a subprocess) we record the crashed subprocess name here.
        self._crashed_subprocess_name = None

        # stderr reading is scoped on a per-test (not per-block) basis, so we store the accumulated
        # stderr output, as well as if we've seen #EOF on this driver instance.
        # FIXME: We should probably remove _read_first_block and _read_optional_image_block and
        # instead scope these locally in run_test.
        self.error_from_test = str()
        self.err_seen_eof = False
开发者ID:jboylee,项目名称:preprocessor-parser,代码行数:17,代码来源:webkit.py

示例2: __init__

# 需要导入模块: from webkitpy.layout_tests.port import Driver [as 别名]
# 或者: from webkitpy.layout_tests.port.Driver import __init__ [as 别名]
    def __init__(self, port, worker_number, pixel_tests, no_timeout=False):
        Driver.__init__(self, port, worker_number, pixel_tests, no_timeout)
        self._driver_tempdir = None
        # WebKitTestRunner can report back subprocess crashes by printing
        # "#CRASHED - PROCESSNAME".  Since those can happen at any time
        # and ServerProcess won't be aware of them (since the actual tool
        # didn't crash, just a subprocess) we record the crashed subprocess name here.
        self._crashed_process_name = None
        self._crashed_pid = None

        # WebKitTestRunner can report back subprocesses that became unresponsive
        # This could mean they crashed.
        self._subprocess_was_unresponsive = False

        # stderr reading is scoped on a per-test (not per-block) basis, so we store the accumulated
        # stderr output, as well as if we've seen #EOF on this driver instance.
        # FIXME: We should probably remove _read_first_block and _read_optional_image_block and
        # instead scope these locally in run_test.
        self.error_from_test = str()
        self.err_seen_eof = False
        self._server_process = None
开发者ID:,项目名称:,代码行数:23,代码来源:

示例3: __init__

# 需要导入模块: from webkitpy.layout_tests.port import Driver [as 别名]
# 或者: from webkitpy.layout_tests.port.Driver import __init__ [as 别名]
 def __init__(self, port, worker_number):
     Driver.__init__(self, port, worker_number)
     self._driver_tempdir = port._filesystem.mkdtemp(prefix='%s-' % self._port.driver_name())
开发者ID:Andolamin,项目名称:LunaSysMgr,代码行数:5,代码来源:webkit.py


注:本文中的webkitpy.layout_tests.port.Driver.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。