當前位置: 首頁>>代碼示例>>Python>>正文


Python Port.driver_name方法代碼示例

本文整理匯總了Python中webkitpy.port.Port.driver_name方法的典型用法代碼示例。如果您正苦於以下問題:Python Port.driver_name方法的具體用法?Python Port.driver_name怎麽用?Python Port.driver_name使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在webkitpy.port.Port的用法示例。


在下文中一共展示了Port.driver_name方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: make_driver

# 需要導入模塊: from webkitpy.port import Port [as 別名]
# 或者: from webkitpy.port.Port import driver_name [as 別名]
    def make_driver(self, filesystem=None):
        port = Port(MockSystemHost(log_executive=True, filesystem=filesystem), 'westondrivertestport', options=MockOptions(configuration='Release'))
        port._config.build_directory = lambda configuration: "/mock_build"
        port._server_process_constructor = MockServerProcess

        driver = WestonDriver(port, worker_number=0, pixel_tests=True)
        driver._startup_delay_secs = 0
        driver._expected_xvfbdisplay = 23
        driver._xvfbdriver = WestonXvfbDriverDisplayTest(driver._expected_xvfbdisplay)
        driver._environment = port.setup_environ_for_server(port.driver_name())
        return driver
開發者ID:Comcast,項目名稱:WebKitForWayland,代碼行數:13,代碼來源:westondriver_unittest.py

示例2: make_driver

# 需要導入模塊: from webkitpy.port import Port [as 別名]
# 或者: from webkitpy.port.Port import driver_name [as 別名]
    def make_driver(self, worker_number=0, xorg_running=False, executive=None):
        port = Port(MockSystemHost(log_executive=True, executive=executive), 'xvfbdrivertestport', options=MockOptions(configuration='Release'))
        port._config.build_directory = lambda configuration: "/mock-build"
        port._server_process_constructor = MockServerProcess
        if xorg_running:
            port._executive._running_pids['Xorg'] = 108

        driver = XvfbDriver(port, worker_number=worker_number, pixel_tests=True)
        driver._startup_delay_secs = 0
        driver._xvfb_screen_depth = lambda: '24'
        driver._environment = port.setup_environ_for_server(port.driver_name())
        return driver
開發者ID:AndriyKalashnykov,項目名稱:webkit,代碼行數:14,代碼來源:xvfbdriver_unittest.py


注:本文中的webkitpy.port.Port.driver_name方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。