In addition to adding test support for dynamic-range and video-dynamic-range,
this expands tests of pixelDepth and colorDepth to allow 30 as an acceptable
value.
Differential Revision: https://phabricator.services.mozilla.com/D141307
All commands declaring a virtualenv will have them activated before the
command executes. Removes all now-redundant manual activations of
declared virtualenvs.
Commands that don't declare a virtualenv will still implicitly be
associated with the "common" virtualenv, but unlike explicit
virtualenv declarations it'll have to be activated manually, just
like it was before this patch.
To smooth the migration with existing usages, virtualenv activation
behaviour was changed slightly: if attempting to activate a new
virtualenv, but the source venv is already command venv, then raise an
exception. (In the future, we should improve testability of
virtualenv scaffolding logic so that tests can be added for this
sort of thing.) This did cause some issues with some tests, which
will be solved more cleanly with bug 1724273. In the meantime,
minimal modifications were made to failing tests to keep them green:
* `test_command_line.py` was activating the `common` virtualenv so
that it could install `mozproxy`, and use its CLI. Instead, I
modified the test to use `mozproxy` using the "module" interface
(`python -m mozproxy ...`). At that point, `MozbuildObject` was
unnecessary and usages were replaced with simpler variants.
* `test_vendor.py` needed its explicit `activate_virtualenv()` call
patched out. It still needs to use a virtualenv's Python
executable, but due to `sys.executable` now being kept up-to-date
as of bug 1717051, it could be used directly.
Differential Revision: https://phabricator.services.mozilla.com/D122892
Creates/updates virtualenvs for some mach commands, replacing
their ad-hoc usage of `install_pip_package()`, `pip install`,
and `sys.path` modifications.
Note: The `docs` virtualenv has `Sphinx==1.1.3` installed, even
though a more modern version of `Sphinx` is used when
`./mach doc` is run. This is ok for now, since `./mach doc` will
just install the newer `Sphinx` over top of the old one. Secondarily,
when we port `./mach doc` to use the centralized system, we'll
be incentivized to make the different `doc` commands use synchonized
versions of the same packages. Success!
Also, note that manual installation of `html5lib` and `requests`
isn't ported to the `wpt` site: this is because they're already
provided by the inherited Mach site.
Differential Revision: https://phabricator.services.mozilla.com/D122902
* TextEncoder stream tests now fail, rather than error
* WritableStreams are exosed on worker interfacess now; and broken-then is fixed too
* Fix interface semantics
Differential Revision: https://phabricator.services.mozilla.com/D141125
We have similar code for range inputs. This matches Blink (but not
WebKit), but I think it's a better default.
The spec seems to leave this up to UAs, so for now landing a
moz-specific WPT. Should be trivial to upstream if we want.
Depends on D141705
Differential Revision: https://phabricator.services.mozilla.com/D141706
This removes a part of the erroneous scheme-comparison and the logging
that was implemented in those functions. The tests for that logging were
also removed.
Differential Revision: https://phabricator.services.mozilla.com/D136229
Replace test pages as used by the session restore tests with data URLs.
Further make the tests more stable by waiting for the expected windows
and tabs to be opened. The relevant changes should fix a couple of
intermittent failures that we have seen in the past.
Differential Revision: https://phabricator.services.mozilla.com/D141081
Automatic update from web-platform-tests
Improve web platform tests for Font Access API.
This refactoring code is the first step to improve WPT.
- Refactor test utility methods into multiple files, and group test
cases into multiple wpt files. Previously, some of test files were
under resources/ rather than directly on font_access/ as window.js
files.
- Simplify the logic to filter and get the test data set.
- Add a few more test cases for query() method.
- Temporarily remove the logic to verify platform-specific table data,
as the previous logic was buggy and compared actual value against
itself.
Change-Id: I7ddbcf73630014a8a6e5840bdc5dd1483ca3426d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3489382
Reviewed-by: Victor Costan <pwnall@chromium.org>
Commit-Queue: Daseul Lee <dslee@chromium.org>
Cr-Commit-Position: refs/heads/main@{#978721}
--
wpt-commits: e04c2432c6abc2e998deed10db0a2a42db70a380
wpt-pr: 32988
Automatic update from web-platform-tests
[@container] Remove size() function
Since we're anyway going to need it for style() queries eventually,
I have kept the parsing and expression-node code for supporting that
grammar. I added some unit test coverage for the related parsing code
since that is now otherwise unreachable.
Also, in query-evaluation.html, I converted the tests which cover
the grammar/evaluation of queries inside size() to style() tests,
since I think those tests are still valuable.
Fixed: 1300546
Change-Id: Ic5968833a63ca7b865c98992963f8113c46e1ec2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3497743
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Commit-Queue: Anders Hartvoll Ruud <andruud@chromium.org>
Cr-Commit-Position: refs/heads/main@{#978355}
--
wpt-commits: 5a7fbefd466d9d8e979ae5c93993ed3f2a99874c
wpt-pr: 33048
Automatic update from web-platform-tests
[BroadcastChannel] Add WPT: opaque origins can't communicate
Add a WPT that tests that opaque origins can't communicate via
BroadcastChannel (with other opaque origins and with the origin
that created it). This ensures that same-origin restrictions
are correctly applied to BroadcastChannels in opaque origins
contexts.
For additional context, see:
https://bugs.chromium.org/p/chromium/issues/detail?id=670024#c6
Bug: 670024
Change-Id: I4cf9089d52cdeb6f255e645990ecc42f2e9a829c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3460249
Reviewed-by: Ben Kelly <wanderview@chromium.org>
Commit-Queue: Andrew Williams <awillia@chromium.org>
Cr-Commit-Position: refs/heads/main@{#978343}
--
wpt-commits: 840ff66cc88af5f263056f396135bcdd55936567
wpt-pr: 33075
Automatic update from web-platform-tests
Add a WPT for payment request delegation.
The test verifies that PaymentRequest.show() call from a subframe fails
from a cross-origin subframe without user activation unless the top
frame has user activation and it delegates the capability to the
subframe.
Chrome passes this test through "wpt run" with the following
command-line flag:
--enable-blink-features=PaymentRequestRequiresUserActivation
Bug: 1130558, 825270
Change-Id: I7ae26ad46653416aec72e342b7a32c24755e6e3e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3413851
Reviewed-by: Stephen McGruer <smcgruer@chromium.org>
Commit-Queue: Mustaq Ahmed <mustaq@chromium.org>
Cr-Commit-Position: refs/heads/main@{#978296}
--
wpt-commits: 30d5f8f4c7687a4f2c0a0999872a5767dbd3987c
wpt-pr: 33006