Update web-platform-tests to revision a4df0fa7be958c11e80caf57fd36c935d11a2a34

This commit is contained in:
WPT Sync Bot 2019-05-26 10:23:06 +00:00
parent 4aad79f9d2
commit a6792ec098
21 changed files with 465 additions and 98 deletions

View file

@ -1,14 +1,9 @@
<!doctype html>
<meta charset="utf8">
<meta name="timeout" content="long">
<title>IndexedDB: large nested objects are cloned correctly</title>
<link rel="help" href="https://w3c.github.io/IndexedDB/#abort-transaction">
<link rel="author" href="pwnall@chromium.org" title="Victor Costan">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="support-promises.js"></script>
<script src="nested-cloning-common.js"></script>
<script>
// META: title=IndexedDB: large nested objects are cloned correctly
// META: timeout=long
// META: script=support-promises.js
// META: script=nested-cloning-common.js
// META: global=window,dedicatedworker,sharedworker,serviceworker
'use strict';
cloningTestWithKeyGenerator(
'multiple requests of objects with blobs and large typed arrays', [
@ -50,5 +45,3 @@ cloningTestWithKeyGenerator(
{ type: 'blob', size: wrapThreshold, mimeType: 'text/x-blink20', seed: 20 },
],
]);
</script>

View file

@ -1,14 +1,9 @@
<!doctype html>
<meta charset="utf8">
<meta name="timeout" content="long">
<title>IndexedDB: large nested objects are cloned correctly</title>
<link rel="help" href="https://w3c.github.io/IndexedDB/#abort-transaction">
<link rel="author" href="pwnall@chromium.org" title="Victor Costan">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="support-promises.js"></script>
<script src="nested-cloning-common.js"></script>
<script>
// META: title=IndexedDB: large nested objects are cloned correctly
// META: timeout=long
// META: script=support-promises.js
// META: script=nested-cloning-common.js
// META: global=window,dedicatedworker,sharedworker,serviceworker
'use strict';
cloningTest('large typed array', [
{ type: 'buffer', size: wrapThreshold, seed: 1 },
@ -45,5 +40,3 @@ cloningTestWithKeyGenerator('object with blobs and large typed arrays', [
seed: 5 },
},
]);
</script>

View file

@ -1,14 +1,9 @@
<!doctype html>
<meta charset="utf8">
<meta name="timeout" content="long">
<title>IndexedDB: small nested objects are cloned correctly</title>
<link rel="help" href="https://w3c.github.io/IndexedDB/#abort-transaction">
<link rel="author" href="pwnall@chromium.org" title="Victor Costan">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="support-promises.js"></script>
<script src="nested-cloning-common.js"></script>
<script>
// META: title=IndexedDB: small nested objects are cloned correctly
// META: timeout=long
// META: script=support-promises.js
// META: script=nested-cloning-common.js
// META: global=window,dedicatedworker,sharedworker,serviceworker
'use strict';
cloningTest('small typed array', [
{ type: 'buffer', size: 64, seed: 1 },
@ -42,6 +37,4 @@ cloningTestWithKeyGenerator('array of blobs and small typed arrays', [
{ type: 'buffer', size: 64, seed: 4 },
{ type: 'blob', size: wrapThreshold, mimeType: 'text/x-blink-05', seed: 5 },
],
]);
</script>
]);

View file

@ -8,19 +8,18 @@
.flexBaselineCheck {
display: flex;
border: 1px solid black;
height: 70px;
}
.flexBaselineCheck > * {
border: 2px solid teal;
/* In the testcase, the (baseline-aligned) items should all have their
bottom borders aligned with the 50px-tall canvas. In other words, their
bottom borders should all be 20px away from the bottom of their flex
container. Here in the reference case, we just use "flex-end" alignment
plus a hardcoded 20px margin-bottom to produce a precise reference
for what that should look like. */
bottom borders should all be aligned at the bottom of their flex
container, separated from the bottom by only by their margin-end
distance. Here in the reference case, we just use "flex-end" alignment
(plus the same amount of margin) to produce a precise reference for what
that should look like. */
align-self: flex-end;
margin-bottom: 20px;
margin: 2px;
}
canvas {
background: purple;

View file

@ -11,12 +11,12 @@
.flexBaselineCheck {
display: flex;
border: 1px solid black;
height: 70px;
}
.flexBaselineCheck > * {
contain: layout;
border: 2px solid teal;
align-self: baseline;
margin: 2px;
}
canvas {
background: purple;

View file

@ -48,3 +48,10 @@
== contain-layout-ignored-cases-no-principal-box-003.html contain-layout-ignored-cases-no-principal-box-003-ref.html
== contain-layout-suppress-baseline-001.html contain-layout-suppress-baseline-001-ref.html
== contain-layout-suppress-baseline-002.html contain-layout-suppress-baseline-002-ref.html
# The following lines are duplicates of other lines from further up in this
# manifest. They're listed again here so we can re-run these tests with
# column-span enabled. These lines can be removed once the pref becomes
# default-enabled (Bug 1426010).
== contain-size-multicol-002.html contain-size-multicol-002-ref.html
== contain-size-multicol-003.html contain-size-multicol-003-ref.html

View file

@ -12,9 +12,12 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
#import os
#import sys
#sys.path.insert(0, os.path.abspath('.'))
import os
import sys
sys.path.insert(0, os.path.abspath('..'))
sys.path.insert(0, os.path.abspath('../tools/wptserve'))
sys.path.insert(0, os.path.abspath('../tools'))
import localpaths
# -- Project information -----------------------------------------------------
@ -38,7 +41,8 @@ release = u''
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'recommonmark'
'recommonmark',
'sphinxarg.ext'
]
# Add any paths that contain templates here, relative to this directory.

View file

@ -1,2 +1,3 @@
recommonmark==0.5.0
Sphinx==1.8.5
sphinx-argparse==0.2.5

View file

@ -0,0 +1,14 @@
# Command-Line Arguments
The `wpt` command-line application offers a number of features for interacting
with WPT. The functionality is organized into "sub-commands", and each accepts
a different set of command-line arguments.
This page documents all of the available sub-commands and associated arguments.
```eval_rst
.. argparse::
:module: tools.wpt.wpt
:func: create_complete_parser
:prog: wpt
```

View file

@ -97,6 +97,9 @@ customising the test run:
./wpt run --help
[A complete listing of the command-line arguments is available
here](command-line-arguments).
Additional browser-specific documentation:
```eval_rst

View file

@ -80,6 +80,34 @@ def import_command(prog, command, props):
return script, parser
def create_complete_parser():
"""Eagerly load all subparsers. This involves more work than is required
for typical command-line usage. It is maintained for the purposes of
documentation generation as implemented in WPT's top-level `/docs`
directory."""
commands = load_commands()
parser = argparse.ArgumentParser()
subparsers = parser.add_subparsers()
for command in commands:
props = commands[command]
if props["virtualenv"]:
setup_virtualenv(None, False, props)
subparser = import_command('wpt', command, props)[1]
if not subparser:
continue
subparsers.add_parser(command,
help=props["help"],
add_help=False,
parents=[subparser])
return parser
def setup_virtualenv(path, skip_venv_setup, props):
if skip_venv_setup and path is None:
raise ValueError("Must set --venv when --skip-venv-setup is used")