mirror of
https://github.com/servo/servo.git
synced 2025-08-08 15:05:35 +01:00
Update web-platform-tests to revision b622fea47d516f82e303c1954d0aee2652466c80
This commit is contained in:
parent
cb915d669a
commit
c6927c2425
54 changed files with 651 additions and 533 deletions
1
tests/wpt/web-platform-tests/conformance-checkers/.gitignore
vendored
Normal file
1
tests/wpt/web-platform-tests/conformance-checkers/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
vnu.jar
|
|
@ -9,6 +9,10 @@ GIT=git
|
|||
GITFLAGS=
|
||||
PYTHON=python
|
||||
PYTHONFLAGS=
|
||||
CURL=curl
|
||||
CURLFLAGS=
|
||||
JAVA=java
|
||||
JAVAFLAGS=
|
||||
VNU_TEST_REPO=git@github.com:validator/tests.git
|
||||
ITS_REPO=git@github.com:w3c/its-2.0-testsuite-inputdata.git
|
||||
.PHONY: .FORCE
|
||||
|
@ -24,9 +28,19 @@ README.md: index.html
|
|||
| $(EXPAND) $(EXPANDFLAGS) > $@
|
||||
|
||||
messages.json: .FORCE
|
||||
$(CURL) $(CURLFLAGS) -O \
|
||||
https://sideshowbarker.net/nightlies/jar/vnu.jar
|
||||
$(JAVA) $(JAVAFLAGS) -cp vnu.jar nu.validator.client.TestRunner \
|
||||
--ignore=html-its --write-messages $@
|
||||
$(PYTHON) $(PYTHONFLAGS) -mjson.tool $@ > $@.tmp
|
||||
mv $@.tmp $@
|
||||
|
||||
test: .FORCE
|
||||
$(CURL) $(CURLFLAGS) -O \
|
||||
https://sideshowbarker.net/nightlies/jar/vnu.jar
|
||||
$(JAVA) $(JAVAFLAGS) -cp vnu.jar nu.validator.client.TestRunner \
|
||||
--ignore=html-its messages.json
|
||||
|
||||
push:
|
||||
cd .. \
|
||||
&& git push $(VNU_TEST_REPO) `git subtree split -P conformance-checkers`:master --force \
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#!/usr/bin/env sh
|
||||
set -ex
|
||||
|
||||
SCRIPT_DIR=$(dirname $(readlink -f "$0"))
|
||||
WPT_ROOT=$(readlink -f $SCRIPT_DIR/..)
|
||||
SCRIPT_DIR=$(cd $(dirname "$0") && pwd -P)
|
||||
WPT_ROOT=$SCRIPT_DIR/..
|
||||
cd $WPT_ROOT
|
||||
|
||||
main() {
|
||||
|
|
|
@ -0,0 +1,27 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="author" href="kojii@chromium.org">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#block-flow" title="3.1 Block Flow Direction: the writing-mode property">
|
||||
<link rel="match" href="reference/inline-box-border-vlr-001.html">
|
||||
<meta content="This test checks that block direciton borders applied to inline boxes do not affect the height of the line box, in vertical-lr writing-mode. The border is set to transparent to make this a ref-test.">
|
||||
<style>
|
||||
html {
|
||||
margin: 0;
|
||||
font-size: 20px;
|
||||
}
|
||||
body {
|
||||
margin: 1em;
|
||||
border: 1px solid blue;
|
||||
}
|
||||
body > div {
|
||||
margin-bottom: 2em;
|
||||
border: 1px solid black;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<div style="writing-mode: vertical-lr; height: 1em">
|
||||
<div><span>a</span></div>
|
||||
</div>
|
||||
<div style="writing-mode: vertical-lr; height: 1em">
|
||||
<div><span style="border-left: 20px solid transparent">a</span></div>
|
||||
</div>
|
||||
</body>
|
|
@ -0,0 +1,23 @@
|
|||
<!DOCTYPE html>
|
||||
<style>
|
||||
html {
|
||||
margin: 0;
|
||||
font-size: 20px;
|
||||
}
|
||||
body {
|
||||
margin: 1em;
|
||||
border: 1px solid blue;
|
||||
}
|
||||
body > div {
|
||||
margin-bottom: 2em;
|
||||
border: 1px solid black;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<div style="writing-mode: vertical-lr; height: 1em">
|
||||
<div><span>a</span></div>
|
||||
</div>
|
||||
<div style="writing-mode: vertical-lr; height: 1em">
|
||||
<div><span>a</span></div>
|
||||
</div>
|
||||
</body>
|
|
@ -54,6 +54,7 @@ var replaceableAttributes = [
|
|||
"parent",
|
||||
"external",
|
||||
"length",
|
||||
"origin",
|
||||
|
||||
// CSSOM-View
|
||||
"screen",
|
||||
|
@ -63,6 +64,8 @@ var replaceableAttributes = [
|
|||
"pageYOffset",
|
||||
"innerWidth",
|
||||
"innerHeight",
|
||||
"screenLeft",
|
||||
"screenTop",
|
||||
"screenX",
|
||||
"screenY",
|
||||
"outerWidth",
|
||||
|
@ -92,6 +95,12 @@ var methods = [
|
|||
"setInterval",
|
||||
"clearInterval",
|
||||
|
||||
// Microtask queuing
|
||||
"queueMicrotask",
|
||||
|
||||
// ImageBitmap
|
||||
"createImageBitmap",
|
||||
|
||||
// HTML Editing APIs
|
||||
"getSelection",
|
||||
|
||||
|
@ -100,6 +109,10 @@ var methods = [
|
|||
|
||||
// CSSOM-View
|
||||
"matchMedia",
|
||||
"moveBy",
|
||||
"moveTo",
|
||||
"resizeBy",
|
||||
"resizeTo",
|
||||
"scroll",
|
||||
"scrollTo",
|
||||
"scrollBy"
|
||||
|
|
|
@ -676,7 +676,7 @@ interface SVGAElement : SVGGraphicsElement {
|
|||
attribute DOMString download;
|
||||
attribute USVString ping;
|
||||
attribute DOMString rel;
|
||||
[SameObject, PutsForward=value] readonly attribute DOMTokenList relList;
|
||||
[SameObject, PutForwards=value] readonly attribute DOMTokenList relList;
|
||||
attribute DOMString hreflang;
|
||||
attribute DOMString type;
|
||||
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
def main(request, response):
|
||||
key = request.GET['key']
|
||||
already_requested = request.server.stash.take(key)
|
||||
|
||||
if already_requested is None:
|
||||
request.server.stash.put(key, True)
|
||||
return [('Content-Type', 'application/javascript')], '// initial script'
|
||||
|
||||
response.status = (404, 'Not found: should not have been able to import this script twice!')
|
|
@ -0,0 +1,13 @@
|
|||
def main(request, response):
|
||||
key = request.GET['key']
|
||||
already_requested = request.server.stash.take(key)
|
||||
|
||||
header = [('Content-Type', 'application/javascript')]
|
||||
initial_script = 'importScripts("./update-missing-import-scripts-imported-worker.py?key={0}")'.format(key)
|
||||
updated_script = '// removed importScripts()'
|
||||
|
||||
if already_requested is None:
|
||||
request.server.stash.put(key, True)
|
||||
return header, initial_script
|
||||
|
||||
return header, updated_script
|
|
@ -0,0 +1,33 @@
|
|||
<!DOCTYPE html>
|
||||
<title>Service Worker: update with missing importScripts</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="resources/test-helpers.sub.js"></script>
|
||||
<script src="/common/utils.js"></script>
|
||||
<body>
|
||||
<script>
|
||||
/**
|
||||
* Test ServiceWorkerRegistration.update() when importScripts in a service worker
|
||||
* script is no longer available (but was initially).
|
||||
*/
|
||||
let registration = null;
|
||||
|
||||
promise_test(async (test) => {
|
||||
const script = `resources/update-missing-import-scripts-main-worker.py?key=${token()}`;
|
||||
const scope = 'resources/update-missing-import-scripts';
|
||||
|
||||
registration = await service_worker_unregister_and_register(test, script, scope);
|
||||
|
||||
add_completion_callback(() => { registration.unregister(); });
|
||||
|
||||
await wait_for_state(test, registration.installing, 'activated');
|
||||
}, 'Initialize global state');
|
||||
|
||||
promise_test(test => {
|
||||
return new Promise(resolve => {
|
||||
registration.addEventListener('updatefound', resolve);
|
||||
registration.update();
|
||||
});
|
||||
}, 'Update service worker with new script that\'s missing importScripts()');
|
||||
</script>
|
||||
</body>
|
|
@ -1,7 +1,7 @@
|
|||
set -ex
|
||||
|
||||
SCRIPT_DIR=$(dirname $(readlink -f "$0"))
|
||||
WPT_ROOT=$(readlink -f $SCRIPT_DIR/../..)
|
||||
SCRIPT_DIR=$(cd $(dirname "$0") && pwd -P)
|
||||
WPT_ROOT=$SCRIPT_DIR/../..
|
||||
cd $WPT_ROOT
|
||||
|
||||
main() {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
set -ex
|
||||
|
||||
SCRIPT_DIR=$(dirname $(readlink -f "$0"))
|
||||
WPT_ROOT=$(readlink -f $SCRIPT_DIR/../..)
|
||||
SCRIPT_DIR=$(cd $(dirname "$0") && pwd -P)
|
||||
WPT_ROOT=$SCRIPT_DIR/../..
|
||||
cd $WPT_ROOT
|
||||
|
||||
mkdir -p ~/meta
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
set -ex
|
||||
|
||||
SCRIPT_DIR=$(dirname $(readlink -f "$0"))
|
||||
WPT_ROOT=$(readlink -f $SCRIPT_DIR/../..)
|
||||
SCRIPT_DIR=$(cd $(dirname "$0") && pwd -P)
|
||||
WPT_ROOT=$SCRIPT_DIR/../..
|
||||
cd $WPT_ROOT
|
||||
|
||||
mkdir -p ~/meta
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#!/bin/bash
|
||||
set -ex
|
||||
|
||||
SCRIPT_DIR=$(dirname $(readlink -f "$0"))
|
||||
WPT_ROOT=$(readlink -f $SCRIPT_DIR/../..)
|
||||
SCRIPT_DIR=$(cd $(dirname "$0") && pwd -P)
|
||||
WPT_ROOT=$SCRIPT_DIR/../..
|
||||
cd $WPT_ROOT
|
||||
|
||||
source tools/ci/lib.sh
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#!/bin/bash
|
||||
set -ex
|
||||
|
||||
SCRIPT_DIR=$(dirname $(readlink -f "$0"))
|
||||
WPT_ROOT=$(readlink -f $SCRIPT_DIR/../..)
|
||||
SCRIPT_DIR=$(cd $(dirname "$0") && pwd -P)
|
||||
WPT_ROOT=$SCRIPT_DIR/../..
|
||||
cd $WPT_ROOT
|
||||
|
||||
source tools/ci/lib.sh
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#!/bin/bash
|
||||
set -ex
|
||||
|
||||
SCRIPT_DIR=$(dirname $(readlink -f "$0"))
|
||||
WPT_ROOT=$(readlink -f $SCRIPT_DIR/../..)
|
||||
SCRIPT_DIR=$(cd $(dirname "$0") && pwd -P)
|
||||
WPT_ROOT=$SCRIPT_DIR/../..
|
||||
cd $WPT_ROOT
|
||||
|
||||
run_applicable_tox () {
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
SCRIPT_DIR=$(dirname $(readlink -f "$0"))
|
||||
WPT_ROOT=$(readlink -f $SCRIPT_DIR/../..)
|
||||
SCRIPT_DIR=$(cd $(dirname "$0") && pwd -P)
|
||||
WPT_ROOT=$SCRIPT_DIR/../..
|
||||
cd $WPT_ROOT
|
||||
|
||||
source tools/ci/lib.sh
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#!/bin/bash
|
||||
set -ex
|
||||
|
||||
SCRIPT_DIR=$(dirname $(readlink -f "$0"))
|
||||
WPT_ROOT=$(readlink -f $SCRIPT_DIR/../..)
|
||||
SCRIPT_DIR=$(cd $(dirname "$0") && pwd -P)
|
||||
WPT_ROOT=$SCRIPT_DIR/../..
|
||||
cd $WPT_ROOT
|
||||
|
||||
source tools/ci/lib.sh
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#!/bin/bash
|
||||
set -ex
|
||||
|
||||
SCRIPT_DIR=$(dirname $(readlink -f "$0"))
|
||||
WPT_ROOT=$(readlink -f $SCRIPT_DIR/../..)
|
||||
SCRIPT_DIR=$(cd $(dirname "$0") && pwd -P)
|
||||
WPT_ROOT=$SCRIPT_DIR/../..
|
||||
cd $WPT_ROOT
|
||||
|
||||
if [[ $RUN_JOB -eq 1 ]]; then
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#!/bin/bash
|
||||
set -ex
|
||||
|
||||
SCRIPT_DIR=$(dirname $(readlink -f "$0"))
|
||||
WPT_ROOT=$(readlink -f $SCRIPT_DIR/../..)
|
||||
SCRIPT_DIR=$(cd $(dirname "$0") && pwd -P)
|
||||
WPT_ROOT=$SCRIPT_DIR/../..
|
||||
cd $WPT_ROOT
|
||||
|
||||
if [[ $RUN_JOB -eq 1 ]]; then
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
html5lib == 1.0.1
|
||||
mozinfo == 0.10
|
||||
mozlog==3.9
|
||||
mozdebug == 0.1
|
||||
mozdebug==0.1.1
|
||||
urllib3[secure]==1.24
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
marionette_driver==2.7.0
|
||||
mozprofile==2.0.0
|
||||
mozprofile==2.1.0
|
||||
mozprocess == 0.26
|
||||
mozcrash == 1.0
|
||||
mozrunner==7.1.0
|
||||
mozrunner==7.2.0
|
||||
mozleak == 0.1
|
||||
mozinstall==1.16.0
|
||||
mozdownload==1.25
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
<!doctype html>
|
||||
<title>just one argument</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
test(function() {
|
||||
assert_throws(new TypeError(), function() {
|
||||
postMessage('');
|
||||
});
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue