__init__.py |
|
0 |
browsers |
|
|
config.py |
|
2143 |
environment.py |
Context manager object that handles setup and teardown of a log queue
for handling logging messages from wptserve. |
14054 |
executors |
|
|
expected.py |
Path to the expectation data file for a given test path.
This is defined as metadata_path + relative_test_path + .ini
:param metadata_path: Path to the root of the metadata directory
:param test_path: Relative path to the test file from the test root
|
472 |
expectedtree.py |
This is basically a measure of the uniformity of the values in results
based on the shannon entropy |
4574 |
font.py |
|
5566 |
formatters |
|
|
instruments.py |
Instrumentation for measuring high-level time spent on various tasks inside the runner.
This is lower fidelity than an actual profile, but allows custom data to be considered,
so that we can see the time spent in specific tests and test directories.
Instruments are intended to be used as context managers with the return value of __enter__
containing the user-facing API e.g.
with Instrument(*args) as recording:
recording.set(["init"])
do_init()
recording.pause()
for thread in test_threads:
thread.start(recording, *args)
for thread in test_threads:
thread.join()
recording.set(["teardown"]) # un-pauses the Instrument
do_teardown()
|
4221 |
manifestexpected.py |
Manifest structure used to store expected results of a test.
Each manifest file is represented by an ExpectedManifest that
has one or more TestNode children, one per test in the manifest.
Each TestNode has zero or more SubtestNode children, one for each
known subtest of the test.
|
14787 |
manifestinclude.py |
Manifest structure used to store paths that should be included in a test run.
The manifest is represented by a tree of IncludeManifest objects, the root
representing the file and each subnode representing a subdirectory that should
be included or excluded.
|
5492 |
manifestupdate.py |
Manifest structure used to update the expected results of a test
Each manifest file is represented by an ExpectedManifest that has one
or more TestNode children, one per test in the manifest. Each
TestNode has zero or more SubtestNode children, one for each known
subtest of the test.
In these representations, conditionals expressions in the manifest are
not evaluated upfront but stored as python functions to be evaluated
at runtime.
When a result for a test is to be updated set_result on the
[Sub]TestNode is called to store the new result, alongside the
existing conditional that result's run info matched, if any. Once all
new results are known, update is called to compute the new
set of results and conditionals. The AST of the underlying parsed manifest
is updated with the changes, and the result is serialised to a file.
|
38830 |
metadata.py |
A wrapper around RunInfo dicts so that they can be hashed by identity |
34437 |
mpcontext.py |
|
211 |
print_pdf_runner.html |
|
965 |
products.py |
|
1998 |
stability.py |
Handler that filters out messages not of a given set of actions.
Subclasses BaseHandler.
:param inner: Handler to use for messages that pass this filter
:param actions: List of actions for which to fire the handler
|
15847 |
testdriver-extra.js |
|
19495 |
testdriver-vendor.js |
|
38 |
testharness_runner.html |
|
95 |
testharnessreport-servo.js |
|
706 |
testharnessreport-wktr.js |
|
729 |
testharnessreport.js |
|
721 |
testloader.py |
Queue wrapper that is only used for writing items to a queue.
Once all items are enqueued, call to_read() to get a reader for the queue.
This will also prevent further writes using this writer. |
28407 |
testrunner.py |
Synchronization for coordinating a graceful exit. |
50478 |
tests |
|
|
update |
|
|
vcs.py |
|
1954 |
wptcommandline.py |
Runner for web-platform-tests tests. |
44366 |
wptlogging.py |
Filter that replaces log messages at specified levels with messages
at a different level.
This can be used to e.g. downgrade log messages from ERROR to WARNING
in some component where ERRORs are not critical.
:param inner: Handler to use for messages that pass this filter
:param from_levels: List of levels which should be affected
:param to_level: Log level to set for the affected messages
|
4004 |
wptmanifest |
|
|
wptrunner.py |
Runner for web-platform-tests
The runner has several design goals:
* Tests should run with no modification from upstream.
* Tests should be regarded as "untrusted" so that errors, timeouts and even
crashes in the tests can be handled without failing the entire test run.
* For performance tests can be run in multiple browsers in parallel.
The upstream repository has the facility for creating a test manifest in JSON
format. This manifest is used directly to determine which tests exist. Local
metadata files are used to store the expected test results.
|
26103 |
wpttest.py |
|
26811 |