# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/.
import os import threading from time import sleep
import mozrunner import pytest from moztest.selftest import fixtures
cmdargs = ["--headless"] if app in ["chrome", "chromium"]: # prevents headless chromium from exiting after loading the page
cmdargs.append("--remote-debugging-port=9222") # only needed on Windows, but no harm in specifying it everywhere
cmdargs.append("--disable-gpu")
runner = mozrunner.runners[app](binary, cmdargs=cmdargs)
runner.app = app yield runner
runner.stop()
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.