mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update web-platform-tests to revision e15b5ebba7465e09bcda2962f6758cddcdcfa248
This commit is contained in:
parent
68e55ead42
commit
3eaee747ed
214 changed files with 4692 additions and 245 deletions
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,2 @@
|
||||||
|
[dynamic-bsize-change.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-000.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-001.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-002.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-003.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-004.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-005.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-006.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-007.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-008.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-00B.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-00D.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-00E.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-00F.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-010.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-011.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-012.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-013.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-014.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-015.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-016.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-017.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-018.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-019.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-01A.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-01B.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-01C.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-01D.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-01E.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-01F.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-07F.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-080.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-081.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-082.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-083.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-084.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-085.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-086.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-087.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-088.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-089.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-08A.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-08B.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-08C.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-08D.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-08E.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-08F.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-090.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-091.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-092.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-093.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-094.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-095.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-096.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-097.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-098.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-099.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-09A.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-09B.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-09C.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-09D.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-09E.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[control-chars-09F.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[line-edge-white-space-collapse-001.html]
|
||||||
|
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
||||||
|
[line-edge-white-space-collapse-002.html]
|
||||||
|
expected: FAIL
|
|
@ -68,6 +68,6 @@
|
||||||
[text-indent intermediate]
|
[text-indent intermediate]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[border-top-width end]
|
[bottom intermediate]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
[traverse_the_history_4.html]
|
|
||||||
[Multiple history traversals, last would be aborted]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
[traverse_the_history_5.html]
|
|
||||||
[Multiple history traversals, last would be aborted]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
|
@ -30,3 +30,6 @@
|
||||||
[Set HTTP URL frame location.protocol to data]
|
[Set HTTP URL frame location.protocol to data]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
[Set HTTP URL frame location.protocol to x]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
expected: TIMEOUT
|
expected: TIMEOUT
|
||||||
|
|
||||||
[picture: source (max-width:500px) valid image, img valid image, resize to wide]
|
[picture: source (max-width:500px) valid image, img valid image, resize to wide]
|
||||||
expected: FAIL
|
expected: TIMEOUT
|
||||||
|
|
||||||
[picture: source (max-width:500px) valid image, img broken image, resize to narrow]
|
[picture: source (max-width:500px) valid image, img broken image, resize to narrow]
|
||||||
expected: TIMEOUT
|
expected: TIMEOUT
|
||||||
|
@ -16,18 +16,9 @@
|
||||||
[picture: source (max-width:500px) broken image, img valid image, resize to narrow]
|
[picture: source (max-width:500px) broken image, img valid image, resize to narrow]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[img (srcset 1 cand) valid image, resize to wide]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[picture: same URL in source (max-width:500px) and img, resize to wide]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[img (srcset 1 cand) valid image, resize to narrow]
|
[img (srcset 1 cand) valid image, resize to narrow]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[picture: source (max-width:500px) valid image, img broken image, resize to wide]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[picture: same URL in source (max-width:500px) and img, resize to narrow]
|
[picture: same URL in source (max-width:500px) and img, resize to narrow]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
[non-active-document.html]
|
|
||||||
[DOMParser]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[createHTMLDocument]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[<template>]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
[no-quirks.html]
|
[quirks.html]
|
||||||
[top: -\\31 .5]
|
[top: -\\31 .5]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
|
@ -1,13 +1,7 @@
|
||||||
[urlencoded-parser.any.html]
|
[urlencoded-parser.any.html]
|
||||||
[response.formData() with input: a&b&c]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[response.formData() with input: _charset_=windows-1252&test=%C2x]
|
[response.formData() with input: _charset_=windows-1252&test=%C2x]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[response.formData() with input: &&&a=b&&&&c=d&]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[request.formData() with input: _charset_=windows-1252&test=%C2x]
|
[request.formData() with input: _charset_=windows-1252&test=%C2x]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -17,14 +11,20 @@
|
||||||
[response.formData() with input: a=b&c=d]
|
[response.formData() with input: a=b&c=d]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
||||||
[urlencoded-parser.any.worker.html]
|
|
||||||
[request.formData() with input: a&b&c]
|
[request.formData() with input: a&b&c]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[response.formData() with input: a=b&c=d&]
|
[response.formData() with input: a=b&c=d&]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
[request.formData() with input: a=b&c=d]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
|
||||||
|
[urlencoded-parser.any.worker.html]
|
||||||
|
[request.formData() with input: a&b&c]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
[request.formData() with input: a=b&c=d&]
|
[request.formData() with input: a=b&c=d&]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -34,3 +34,12 @@
|
||||||
[request.formData() with input: &&&a=b&&&&c=d&]
|
[request.formData() with input: &&&a=b&&&&c=d&]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
[request.formData() with input: _charset_=windows-1252&test=%C2x]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[request.formData() with input: a=b&c=d]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
[response.formData() with input: _charset_=windows-1252&test=%C2x]
|
||||||
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
[realtimeanalyser-fft-scaling.html]
|
[realtimeanalyser-fft-scaling.html]
|
||||||
expected: TIMEOUT
|
|
||||||
[X 2048-point FFT peak position is not equal to 64. Got 0.]
|
[X 2048-point FFT peak position is not equal to 64. Got 0.]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
[import-in-moduleworker.html]
|
[import-in-moduleworker.html]
|
||||||
expected: ERROR
|
|
||||||
[Base URL in module dedicated workers: import]
|
[Base URL in module dedicated workers: import]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -4,23 +4,19 @@ language: python
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
addons:
|
|
||||||
hosts:
|
|
||||||
- web-platform.test
|
|
||||||
- www.web-platform.test
|
|
||||||
- www1.web-platform.test
|
|
||||||
- www2.web-platform.test
|
|
||||||
- xn--n8j6ds53lwwkrqhv28a.web-platform.test
|
|
||||||
- xn--lve-6lad.web-platform.test
|
|
||||||
before_install:
|
before_install:
|
||||||
# This needs be sourced as it sets various env vars
|
# This needs be sourced as it sets various env vars
|
||||||
- . ./tools/ci/before_install.sh
|
- . ./tools/ci/before_install.sh
|
||||||
install:
|
install:
|
||||||
- ./tools/ci/install.sh
|
- ./tools/ci/install.sh
|
||||||
matrix:
|
matrix:
|
||||||
|
# The use of `if` conditionals to exclude jobs from master should align with
|
||||||
|
# jobs unconditionally listed by `./wpt test-jobs`, regardless of affected
|
||||||
|
# paths. (The reverse is not true, as the manifest job could run on PRs too.)
|
||||||
fast_finish: true
|
fast_finish: true
|
||||||
include:
|
include:
|
||||||
- name: "tag master + upload manifest"
|
- name: "tag master + upload manifest"
|
||||||
|
if: type = push AND branch = master
|
||||||
os: linux
|
os: linux
|
||||||
python: "2.7"
|
python: "2.7"
|
||||||
env:
|
env:
|
||||||
|
@ -33,18 +29,22 @@ matrix:
|
||||||
file: $WPT_MANIFEST_FILE.gz
|
file: $WPT_MANIFEST_FILE.gz
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
- name: "lint"
|
- name: "lint"
|
||||||
|
# lint is run both on master and on PRs
|
||||||
os: linux
|
os: linux
|
||||||
python: "2.7"
|
python: "2.7"
|
||||||
env: JOB=lint SCRIPT=tools/ci/ci_lint.sh
|
env: JOB=lint SCRIPT=tools/ci/ci_lint.sh
|
||||||
- name: "update-built-tests.sh"
|
- name: "update-built-tests.sh"
|
||||||
|
if: type = pull_request
|
||||||
os: linux
|
os: linux
|
||||||
python: "2.7"
|
python: "2.7"
|
||||||
env: JOB=update_built SCRIPT=tools/ci/ci_built_diff.sh
|
env: JOB=update_built SCRIPT=tools/ci/ci_built_diff.sh
|
||||||
- name: "build-css-testsuites.sh"
|
- name: "build-css-testsuites.sh"
|
||||||
|
if: type = pull_request
|
||||||
os: linux
|
os: linux
|
||||||
python: "2.7"
|
python: "2.7"
|
||||||
env: JOB=build_css SCRIPT=css/build-css-testsuites.sh
|
env: JOB=build_css SCRIPT=css/build-css-testsuites.sh
|
||||||
- name: "stability (Firefox Nightly)"
|
- name: "stability (Firefox Nightly)"
|
||||||
|
if: type = pull_request
|
||||||
os: linux
|
os: linux
|
||||||
python: "2.7"
|
python: "2.7"
|
||||||
addons:
|
addons:
|
||||||
|
@ -54,8 +54,8 @@ matrix:
|
||||||
env:
|
env:
|
||||||
- JOB=stability SCRIPT=tools/ci/ci_stability.sh PRODUCT=firefox:nightly
|
- JOB=stability SCRIPT=tools/ci/ci_stability.sh PRODUCT=firefox:nightly
|
||||||
- name: "stability (Chrome Dev)"
|
- name: "stability (Chrome Dev)"
|
||||||
|
if: type = pull_request
|
||||||
os: linux
|
os: linux
|
||||||
sudo: required
|
|
||||||
python: "2.7"
|
python: "2.7"
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
|
@ -65,14 +65,17 @@ matrix:
|
||||||
env:
|
env:
|
||||||
- JOB=stability SCRIPT=tools/ci/ci_stability.sh PRODUCT=chrome:dev
|
- JOB=stability SCRIPT=tools/ci/ci_stability.sh PRODUCT=chrome:dev
|
||||||
- name: "tools/ unittests (Python 2)"
|
- name: "tools/ unittests (Python 2)"
|
||||||
|
if: type = pull_request
|
||||||
os: linux
|
os: linux
|
||||||
python: "2.7"
|
python: "2.7"
|
||||||
env: JOB=tools_unittest TOXENV=py27 HYPOTHESIS_PROFILE=ci SCRIPT=tools/ci/ci_tools_unittest.sh
|
env: JOB=tools_unittest TOXENV=py27 HYPOTHESIS_PROFILE=ci SCRIPT=tools/ci/ci_tools_unittest.sh
|
||||||
- name: "tools/ unittests (Python 3)"
|
- name: "tools/ unittests (Python 3)"
|
||||||
|
if: type = pull_request
|
||||||
os: linux
|
os: linux
|
||||||
python: "3.6"
|
python: "3.6"
|
||||||
env: JOB=tools_unittest TOXENV=py36 HYPOTHESIS_PROFILE=ci SCRIPT=tools/ci/ci_tools_unittest.sh
|
env: JOB=tools_unittest TOXENV=py36 HYPOTHESIS_PROFILE=ci SCRIPT=tools/ci/ci_tools_unittest.sh
|
||||||
- name: "tools/wpt/ unittests"
|
- name: "tools/wpt/ unittests"
|
||||||
|
if: type = pull_request
|
||||||
os: linux
|
os: linux
|
||||||
python: "2.7"
|
python: "2.7"
|
||||||
addons:
|
addons:
|
||||||
|
@ -81,10 +84,12 @@ matrix:
|
||||||
- libnss3-tools
|
- libnss3-tools
|
||||||
env: JOB=wpt_integration TOXENV=py27,py27-flake8 SCRIPT=tools/ci/ci_wpt.sh
|
env: JOB=wpt_integration TOXENV=py27,py27-flake8 SCRIPT=tools/ci/ci_wpt.sh
|
||||||
- name: "resources/ tests"
|
- name: "resources/ tests"
|
||||||
|
if: type = pull_request
|
||||||
os: linux
|
os: linux
|
||||||
python: "2.7"
|
python: "2.7"
|
||||||
env: JOB=resources_unittest TOXENV=py27 SCRIPT=tools/ci/ci_resources_unittest.sh
|
env: JOB=resources_unittest TOXENV=py27 SCRIPT=tools/ci/ci_resources_unittest.sh
|
||||||
- name: "infrastructure/ tests"
|
- name: "infrastructure/ tests"
|
||||||
|
if: type = pull_request
|
||||||
os: linux
|
os: linux
|
||||||
python: "2.7"
|
python: "2.7"
|
||||||
env: JOB=wptrunner_infrastructure SCRIPT=tools/ci/ci_wptrunner_infrastructure.sh
|
env: JOB=wptrunner_infrastructure SCRIPT=tools/ci/ci_wptrunner_infrastructure.sh
|
||||||
|
|
|
@ -1,50 +0,0 @@
|
||||||
// META: script=/service-workers/service-worker/resources/test-helpers.sub.js
|
|
||||||
// META: script=resources/utils.js
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
// Covers basic functionality provided by BackgroundFetchManager.abort().
|
|
||||||
// https://wicg.github.io/background-fetch/#background-fetch-registration-abort
|
|
||||||
|
|
||||||
backgroundFetchTest(async (test, backgroundFetch) => {
|
|
||||||
const registration = await backgroundFetch.fetch(
|
|
||||||
uniqueId(),
|
|
||||||
['resources/feature-name.txt', '/serviceworker/resources/slow-response.php']);
|
|
||||||
|
|
||||||
assert_true(await registration.abort());
|
|
||||||
assert_false(await registration.abort());
|
|
||||||
|
|
||||||
}, 'Aborting the same registration twice fails');
|
|
||||||
|
|
||||||
backgroundFetchTest(async (test, backgroundFetch) => {
|
|
||||||
const registration = await backgroundFetch.fetch(
|
|
||||||
uniqueId(),
|
|
||||||
['resources/feature-name.txt', '/serviceworker/resources/slow-response.php']);
|
|
||||||
const resultPromise = getMessageFromServiceWorker();
|
|
||||||
|
|
||||||
await new Promise(resolve => {
|
|
||||||
registration.onprogress = async (e) => {
|
|
||||||
// The size of the first file.
|
|
||||||
if (e.target.downloaded < 16)
|
|
||||||
return;
|
|
||||||
|
|
||||||
// At this point the first file is downloaded.
|
|
||||||
|
|
||||||
assert_true(await registration.abort());
|
|
||||||
|
|
||||||
const {type, eventRegistration, results} = await resultPromise;
|
|
||||||
|
|
||||||
assert_equals(eventRegistration.result, 'failure');
|
|
||||||
assert_equals(eventRegistration.failureReason, 'aborted');
|
|
||||||
|
|
||||||
assert_equals(type, 'backgroundfetchabort');
|
|
||||||
assert_equals(results.length, 1);
|
|
||||||
|
|
||||||
assert_true(results[0].url.includes('resources/feature-name.txt'));
|
|
||||||
assert_equals(results[0].status, 200);
|
|
||||||
assert_equals(results[0].text, 'Background Fetch');
|
|
||||||
|
|
||||||
resolve();
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
}, 'Calling BackgroundFetchRegistration.abort sets the correct fields and responses are still available');
|
|
|
@ -27,4 +27,3 @@ function handleBackgroundFetchUpdateEvent(event) {
|
||||||
|
|
||||||
self.addEventListener('backgroundfetchsuccess', handleBackgroundFetchUpdateEvent);
|
self.addEventListener('backgroundfetchsuccess', handleBackgroundFetchUpdateEvent);
|
||||||
self.addEventListener('backgroundfetchfail', handleBackgroundFetchUpdateEvent);
|
self.addEventListener('backgroundfetchfail', handleBackgroundFetchUpdateEvent);
|
||||||
self.addEventListener('backgroundfetchabort', handleBackgroundFetchUpdateEvent);
|
|
||||||
|
|
|
@ -0,0 +1,32 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Security-Policy" content="
|
||||||
|
IMg-sRC 'self' 'unsafe-inline' http://{{domains[www1]}}:{{ports[http][0]}};
|
||||||
|
img-src 'self' 'unsafe-inline' http://{{domains[www2]}}:{{ports[http][0]}};">
|
||||||
|
<script src="/resources/testharness.js"></script>
|
||||||
|
<script src="/resources/testharnessreport.js"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<script>
|
||||||
|
var t1 = async_test("Test that the www1 image is allowed to load");
|
||||||
|
var t2 = async_test("Test that the www2 image is not allowed to load");
|
||||||
|
var t_spv = async_test("Test that the www2 image throws a violation event");
|
||||||
|
window.addEventListener("securitypolicyviolation", t_spv.step_func_done(function(e) {
|
||||||
|
assert_equals(e.violatedDirective, "img-src");
|
||||||
|
assert_equals(e.blockedURI, "http://{{domains[www2]}}:{{ports[http][0]}}/content-security-policy/support/fail.png");
|
||||||
|
}));
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<img src="http://{{domains[www1]}}:{{ports[http][0]}}/content-security-policy/support/pass.png"
|
||||||
|
onload="t1.done();"
|
||||||
|
onerror="t1.step(function() { assert_unreached('www1 image should have loaded'); t1.done(); });">
|
||||||
|
|
||||||
|
<img src="http://{{domains[www2]}}:{{ports[http][0]}}/content-security-policy/support/fail.png"
|
||||||
|
onerror="t2.done();"
|
||||||
|
onload="t2.step(function() { assert_unreached('www2 image should not have loaded'); t2.done(); });">
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
|
@ -0,0 +1,23 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<script nonce="abc" src="/resources/testharness.js"></script>
|
||||||
|
<script nonce="abc" src="/resources/testharnessreport.js"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<!-- This tests that navigating a main window to a local scheme preserves the current CSP.
|
||||||
|
We need to test this in a main window with no parent/opener so we use
|
||||||
|
a link with target=_blank and rel=noopener. -->
|
||||||
|
<body>
|
||||||
|
<script>
|
||||||
|
const a = document.createElement("a")
|
||||||
|
a.href = "support/navigate-self-to-blob.html?csp=script-src%20%27nonce-abc%27&report_id={{$id:uuid()}}";
|
||||||
|
a.target = "_blank"
|
||||||
|
a.rel = "noopener"
|
||||||
|
a.click()
|
||||||
|
</script>
|
||||||
|
<script async defer src='../support/checkReport.sub.js?reportField=violated-directive&reportValue=script-src%20%27nonce-abc%27&reportID={{$id}}'></script>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
|
@ -0,0 +1,6 @@
|
||||||
|
<script nonce="abc">
|
||||||
|
var blob_string = "<script>alert(document.domain)<\/script>";
|
||||||
|
var blob = new Blob([blob_string], {type : 'text/html'});
|
||||||
|
var url = URL.createObjectURL(blob);
|
||||||
|
location.href=url;
|
||||||
|
</script>
|
|
@ -0,0 +1,4 @@
|
||||||
|
Expires: Mon, 26 Jul 1997 05:00:00 GMT
|
||||||
|
Cache-Control: no-store, no-cache, must-revalidate
|
||||||
|
Pragma: no-cache
|
||||||
|
Content-Security-Policy: {{GET[csp]}}; report-uri http://{{host}}:{{ports[http][0]}}/content-security-policy/support/report.py?op=put&reportID={{GET[report_id]}}
|
|
@ -0,0 +1,20 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'nonce-abc' 'sha256-c6TzhBw/snA+hlDMGOuKLWXIkb2sawA/S1wbSe6FeEM=';">
|
||||||
|
<script src='/resources/testharness.js'></script>
|
||||||
|
<script src='/resources/testharnessreport.js'></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<script nonce="abc">
|
||||||
|
var t1 = async_test("Should convert the script contents to UTF-8 before hashing");
|
||||||
|
window.addEventListener("securitypolicyviolation", t1.unreached_func("Should not have fired a spv"));
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<!-- <20> (micro sign) has the value of 0xB5 in latin-1 and of 0xC2B5 in utf-8 but the hash value should be the same as the utf-8 computed one -->
|
||||||
|
<script>
|
||||||
|
// <20> - latin micro sign
|
||||||
|
t1.done();
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Content-Type: text/html; charset=iso-8859-1
|
|
@ -0,0 +1,20 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'nonce-abc' 'sha256-hbNM6T3uO5pu4o5YfNnUmwtq5VHHMr7V5ospXtx9bqU=';">
|
||||||
|
<script src='/resources/testharness.js'></script>
|
||||||
|
<script src='/resources/testharnessreport.js'></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<script nonce="abc">
|
||||||
|
var t3 = async_test("Should convert the script contents to UTF-8 before hashing");
|
||||||
|
window.addEventListener("securitypolicyviolation", t3.unreached_func("Should not have fired a spv"));
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<!-- <20> (latin capital letter g with breve) has the value of 0xAB in latin-3 and of 0xC49E in utf-8 but the hash value should be the same as the utf-8 computed one -->
|
||||||
|
<script>
|
||||||
|
// <20> - latin capital letter g with breve
|
||||||
|
t3.done();
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Content-Type: text/html; charset=iso-8859-3
|
|
@ -0,0 +1,20 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'nonce-abc' 'sha256-ST0rpskqtEC0Q0hqbIAZFeE1KBMJeGZGyYaTcTkieG8=';">
|
||||||
|
<script src='/resources/testharness.js'></script>
|
||||||
|
<script src='/resources/testharnessreport.js'></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<script nonce="abc">
|
||||||
|
var t2 = async_test("Should convert the script contents to UTF-8 before hashing");
|
||||||
|
window.addEventListener("securitypolicyviolation", t2.unreached_func("Should not have fired a spv"));
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<!-- <20> (greek small letter mu) has the value of 0xEC in latin-7 and of 0xCEBC in utf-8 but the hash value should be the same as the utf-8 computed one -->
|
||||||
|
<script>
|
||||||
|
// <20> - greek small letter mu
|
||||||
|
t2.done();
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Content-Type: text/html; charset=iso-8859-7
|
|
@ -0,0 +1,20 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'nonce-abc' 'sha256-hbNM6T3uO5pu4o5YfNnUmwtq5VHHMr7V5ospXtx9bqU=';">
|
||||||
|
<script src='/resources/testharness.js'></script>
|
||||||
|
<script src='/resources/testharnessreport.js'></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<script nonce="abc">
|
||||||
|
var t3 = async_test("Should convert the script contents to UTF-8 before hashing");
|
||||||
|
window.addEventListener("securitypolicyviolation", t3.unreached_func("Should not have fired a spv"));
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<!-- <20> (latin capital letter g with breve) has the value of 0xD0 in latin-9 and of 0xC49E in utf-8 but the hash value should be the same as the utf-8 computed one -->
|
||||||
|
<script>
|
||||||
|
// <20> - latin capital letter g with breve
|
||||||
|
t3.done();
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Content-Type: text/html; charset=iso-8859-9
|
|
@ -0,0 +1,31 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'nonce-abc' 'sha256-YJSaNEZFStZqU2Mp2EttwhcP2aT9lnDvexn+BM2HfKo=';">
|
||||||
|
<script src='/resources/testharness.js'></script>
|
||||||
|
<script src='/resources/testharnessreport.js'></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<script nonce="abc">
|
||||||
|
var t = async_test("Should convert the script contents to UTF-8 before hashing");
|
||||||
|
var count = 0;
|
||||||
|
var script_ran = function() {
|
||||||
|
// if both blocks run the tests is succsssful
|
||||||
|
if (++count == 2) t.done();
|
||||||
|
}
|
||||||
|
window.addEventListener("securitypolicyviolation", t.unreached_func("Should not have fired a spv"));
|
||||||
|
|
||||||
|
// Insert a script element that contains the U+FFFD replacement character
|
||||||
|
var scr1 = document.createElement('script');
|
||||||
|
scr1.text ="//\uFFFD\nscript_ran();";
|
||||||
|
document.body.appendChild(scr1);
|
||||||
|
|
||||||
|
// Insert a script element that contains a surrogate character but it otherwise
|
||||||
|
// entirely identical to the previously inserted one, the surrogate should be
|
||||||
|
// be converted to U+FFFD when converting to UTF-8 so it should have the
|
||||||
|
// same hash as the one inserted before
|
||||||
|
var scr2 = document.createElement('script');
|
||||||
|
scr2.text ="//\uD801\nscript_ran();";
|
||||||
|
document.body.appendChild(scr2);
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1 @@
|
||||||
|
Content-Type: text/html; charset=utf-8
|
|
@ -0,0 +1,36 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'nonce-abc'
|
||||||
|
'sha256-c6TzhBw/snA+hlDMGOuKLWXIkb2sawA/S1wbSe6FeEM='
|
||||||
|
'sha256-ST0rpskqtEC0Q0hqbIAZFeE1KBMJeGZGyYaTcTkieG8='
|
||||||
|
'sha256-hbNM6T3uO5pu4o5YfNnUmwtq5VHHMr7V5ospXtx9bqU=';">
|
||||||
|
<!-- hashes matching the 3 script blocks below -->
|
||||||
|
<script src='/resources/testharness.js'></script>
|
||||||
|
<script src='/resources/testharnessreport.js'></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<script nonce="abc">
|
||||||
|
var t1 = async_test("Should convert the script contents to UTF-8 before hashing - latin micro sign");
|
||||||
|
window.addEventListener("securitypolicyviolation", t1.unreached_func("Should not have fired a spv"));
|
||||||
|
var t2 = async_test("Should convert the script contents to UTF-8 before hashing - greek small letter mu");
|
||||||
|
window.addEventListener("securitypolicyviolation", t2.unreached_func("Should not have fired a spv"));
|
||||||
|
var t3 = async_test("Should convert the script contents to UTF-8 before hashing - latin capital letter g with breve");
|
||||||
|
window.addEventListener("securitypolicyviolation", t3.unreached_func("Should not have fired a spv"));
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<!-- the hash values of these script blocks should match the same values
|
||||||
|
of identical script blocks in documents with other encodings -->
|
||||||
|
<script>
|
||||||
|
// µ - latin micro sign
|
||||||
|
t1.done();
|
||||||
|
</script>
|
||||||
|
<script>
|
||||||
|
// μ - greek small letter mu
|
||||||
|
t2.done();
|
||||||
|
</script>
|
||||||
|
<script>
|
||||||
|
// Ğ - latin capital letter g with breve
|
||||||
|
t3.done();
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1 @@
|
||||||
|
Content-Type: text/html; charset=utf-8
|
|
@ -0,0 +1,9 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<title>Auto margin-top and margin-bottom, non-auto everything else</title>
|
||||||
|
<link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org">
|
||||||
|
<link rel="help" href="https://www.w3.org/TR/CSS22/visudet.html#abs-non-replaced-height">
|
||||||
|
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
|
||||||
|
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
|
||||||
|
<div style="position:relative; width:100px; height:100px; background:red;">
|
||||||
|
<div style="position:absolute; top:50%; bottom:50%; width:100px; height:100px; margin:auto; background:green;"></div>
|
||||||
|
</div>
|
|
@ -0,0 +1,18 @@
|
||||||
|
<!doctype html>
|
||||||
|
<title>CSS Test Reference</title>
|
||||||
|
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
|
||||||
|
<style>
|
||||||
|
div {
|
||||||
|
border: 1px solid;
|
||||||
|
}
|
||||||
|
#myHeightChanges {
|
||||||
|
width: 100px;
|
||||||
|
height: 200px;
|
||||||
|
background: green;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<div style="display:flex; flex-direction:column">
|
||||||
|
<div style="height:auto">
|
||||||
|
<div id="myHeightChanges"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
|
@ -0,0 +1,28 @@
|
||||||
|
<!doctype html>
|
||||||
|
<title>CSS Test: Dynamic change to the block size inside an auto-sized flex item</title>
|
||||||
|
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
|
||||||
|
<link rel="author" title="Mozilla" href="https://mozilla.org">
|
||||||
|
<link rel="help" href="https://drafts.csswg.org/css-flexbox">
|
||||||
|
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1496833">
|
||||||
|
<link rel="match" href="dynamic-bsize-change-ref.html">
|
||||||
|
<style>
|
||||||
|
div {
|
||||||
|
border: 1px solid;
|
||||||
|
}
|
||||||
|
#myHeightChanges {
|
||||||
|
width: 100px;
|
||||||
|
height: 100px;
|
||||||
|
background: green;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<div style="display:flex; flex-direction:column">
|
||||||
|
<div style="height:auto">
|
||||||
|
<div id="myHeightChanges"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
onload = function() {
|
||||||
|
window.unused = myHeightChanges.offsetTop;
|
||||||
|
myHeightChanges.style.height = "200px";
|
||||||
|
}
|
||||||
|
</script>
|
|
@ -68,6 +68,12 @@
|
||||||
grid-row: 3;
|
grid-row: 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.thirdRowThirdColumn {
|
||||||
|
background-color: salmon;
|
||||||
|
grid-column: 3;
|
||||||
|
grid-row: 3;
|
||||||
|
}
|
||||||
|
|
||||||
.firstRowThirdColumn {
|
.firstRowThirdColumn {
|
||||||
background-color: magenta;
|
background-color: magenta;
|
||||||
grid-column: 3;
|
grid-column: 3;
|
||||||
|
|
|
@ -68,6 +68,12 @@
|
||||||
grid-row: 3;
|
grid-row: 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.thirdRowThirdColumn {
|
||||||
|
background-color: salmon;
|
||||||
|
grid-column: 3;
|
||||||
|
grid-row: 3;
|
||||||
|
}
|
||||||
|
|
||||||
.firstRowThirdColumn {
|
.firstRowThirdColumn {
|
||||||
background-color: magenta;
|
background-color: magenta;
|
||||||
grid-column: 3;
|
grid-column: 3;
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue