Skip to content

Commit

Permalink
Update web-platform-tests to revision 76ef43a54441ca53b6931dd714eb912…
Browse files Browse the repository at this point in the history
…4404bff76
  • Loading branch information
servo-wpt-sync committed Jun 24, 2019
1 parent a2b195a commit b0f3d08
Show file tree
Hide file tree
Showing 21 changed files with 181 additions and 197 deletions.
3 changes: 0 additions & 3 deletions tests/wpt/metadata/FileAPI/url/url-with-fetch.any.js.ini
Expand Up @@ -37,6 +37,3 @@
[Revoke blob URL after creating Request, will fetch]
expected: FAIL

[Revoke blob URL after calling fetch, fetch should succeed]
expected: FAIL

34 changes: 27 additions & 7 deletions tests/wpt/metadata/MANIFEST.json
Expand Up @@ -387082,6 +387082,12 @@
{}
]
],
"shape-detection/detection-HTMLVideoElement-invalid-state.html": [
[
"shape-detection/detection-HTMLVideoElement-invalid-state.html",
{}
]
],
"shape-detection/detection-HTMLVideoElement.html": [
[
"shape-detection/detection-HTMLVideoElement.html",
Expand Down Expand Up @@ -393930,6 +393936,12 @@
{}
]
],
"svg/scripted/script-runs-in-shadow-tree.html": [
[
"svg/scripted/script-runs-in-shadow-tree.html",
{}
]
],
"svg/scripted/text-attrs-dxdy-have-length.svg": [
[
"svg/scripted/text-attrs-dxdy-have-length.svg",
Expand Down Expand Up @@ -661886,6 +661898,10 @@
"979efabdcb07cfdc0190383026a24e144dea1747",
"testharness"
],
"shape-detection/detection-HTMLVideoElement-invalid-state.html": [
"e777c96e4a1737968d60f390bf97d5f4c971e95d",
"testharness"
],
"shape-detection/detection-HTMLVideoElement.html": [
"7b3736d02e9b6b0769a18354b054e5c3ce268773",
"testharness"
Expand Down Expand Up @@ -661931,7 +661947,7 @@
"support"
],
"shape-detection/shapedetection-cross-origin.sub.html": [
"c9d86430356de470bca7a8dfef8596e9159164ad",
"f45369266973ee771c648d01b6e4a48ce1282959",
"testharness"
],
"shape-detection/shapedetection-empty-input.html": [
Expand Down Expand Up @@ -666386,6 +666402,10 @@
"786290a158b99a727bf26c4a30556246d30af8dc",
"reftest"
],
"svg/scripted/script-runs-in-shadow-tree.html": [
"d3a896fb93da55973f31fc574b13a6ad62bd1e94",
"testharness"
],
"svg/scripted/text-attrs-dxdy-have-length.svg": [
"a5f07e29a11ad0279b4645059f50573e76f909cc",
"testharness"
Expand Down Expand Up @@ -678847,7 +678867,7 @@
"testharness"
],
"webrtc-identity/RTCPeerConnection-peerIdentity.https.html": [
"518d57777aa79cd2c74ac1820f3538c4afb2732b",
"f372e37a9a693ccf35597f47273d139f7f6b74a0",
"testharness"
],
"webrtc-identity/identity-helper.sub.js": [
Expand Down Expand Up @@ -679083,7 +679103,7 @@
"testharness"
],
"webrtc/RTCPeerConnection-ontrack.https.html": [
"10210129acd598fd959124fbe51462de8a1cdb0b",
"99f30c264b3648d52fda6bb50de980bcbe84be3c",
"testharness"
],
"webrtc/RTCPeerConnection-remote-track-mute.https.html": [
Expand Down Expand Up @@ -681579,19 +681599,19 @@
"reftest"
],
"webvtt/rendering/cues-with-video/processing-model/2_tracks-ref.html": [
"1a46c4d83f8dab463739d1928c4fd87d4975f2bb",
"fa969b1ab08ed393425c38b19b1b1f54a31e341c",
"support"
],
"webvtt/rendering/cues-with-video/processing-model/2_tracks.html": [
"f422d73d6d767b4de5f296e9b67eb8072b0e43cc",
"7648d876928dad228e3e84a2afa4a5ab8276773f",
"reftest"
],
"webvtt/rendering/cues-with-video/processing-model/3_tracks-ref.html": [
"bec3c0557ca557457f113c95a79cc3132899c373",
"9fc52199fd01b5662e5db2a9a527a446bbe748cd",
"support"
],
"webvtt/rendering/cues-with-video/processing-model/3_tracks.html": [
"809e173b46db0f2c3c65a708ad841703602c40f9",
"c0d5c161cb918ee6738199f8b5220861b0401805",
"reftest"
],
"webvtt/rendering/cues-with-video/processing-model/align_center-ref.html": [
Expand Down
Expand Up @@ -56,9 +56,6 @@
[outline-width length(px) / values]
expected: FAIL

[border-left-width length(em) / values]
expected: FAIL

[border-bottom-width length(px) / values]
expected: FAIL

Expand Down Expand Up @@ -92,12 +89,6 @@
[min-width length(px) / values]
expected: FAIL

[border-top-color color(rgba) / values]
expected: FAIL

[border-right-color color(rgba) / values]
expected: FAIL

[font-size length(ex) / values]
expected: FAIL

Expand Down Expand Up @@ -128,9 +119,6 @@
[font-size length(em) / values]
expected: FAIL

[border-left-width length(mm) / values]
expected: FAIL

[vertical-align length(em) / values]
expected: FAIL

Expand Down Expand Up @@ -212,9 +200,6 @@
[letter-spacing length(in) / values]
expected: FAIL

[border-bottom-color color(rgba) / values]
expected: FAIL

[min-width percentage(%) / values]
expected: FAIL

Expand All @@ -233,9 +218,6 @@
[vertical-align length(pt) / values]
expected: FAIL

[border-left-color color(rgba) / values]
expected: FAIL

[letter-spacing length(pc) / values]
expected: FAIL

Expand Down Expand Up @@ -302,15 +284,9 @@
[border-top-width length(pc) / values]
expected: FAIL

[border-left-width length(px) / values]
expected: FAIL

[font-size length(px) / values]
expected: FAIL

[border-left-width length(cm) / values]
expected: FAIL

[border-right-width length(px) / values]
expected: FAIL

Expand All @@ -332,9 +308,6 @@
[border-right-width length(pt) / values]
expected: FAIL

[border-left-width length(in) / values]
expected: FAIL

[max-height length(in) / values]
expected: FAIL

Expand Down Expand Up @@ -365,15 +338,9 @@
[letter-spacing length(ex) / values]
expected: FAIL

[border-left-width length(ex) / values]
expected: FAIL

[outline-width length(mm) / values]
expected: FAIL

[border-left-width length(pc) / values]
expected: FAIL

[outline-width length(pc) / values]
expected: FAIL

Expand Down Expand Up @@ -428,9 +395,6 @@
[z-index integer(integer) / values]
expected: FAIL

[border-left-width length(pt) / values]
expected: FAIL

[vertical-align length(mm) / values]
expected: FAIL

Expand Down

This file was deleted.

15 changes: 3 additions & 12 deletions tests/wpt/metadata/fetch/content-type/response.window.js.ini
Expand Up @@ -84,9 +84,6 @@
[Request: combined response Content-Type: text/html text/plain]
expected: FAIL

[<iframe>: separate response Content-Type: text/plain */*]
expected: FAIL

[<iframe>: combined response Content-Type: text/plain;charset=gbk text/html;charset=windows-1254]
expected: FAIL

Expand Down Expand Up @@ -306,9 +303,6 @@
[Response: combined response Content-Type: text/html;" \\" text/plain ";charset=GBK]
expected: NOTRUN

[<iframe>: separate response Content-Type: text/plain */*;charset=gbk]
expected: FAIL

[<iframe>: combined response Content-Type: text/html;charset=gbk text/plain text/html]
expected: FAIL

Expand All @@ -321,15 +315,12 @@
[<iframe>: separate response Content-Type: */* text/html]
expected: FAIL

[<iframe>: separate response Content-Type: text/html;" text/plain]
expected: FAIL

[<iframe>: separate response Content-Type: text/html;" \\" text/plain]
[<iframe>: combined response Content-Type: text/html */*;charset=gbk]
expected: FAIL

[<iframe>: combined response Content-Type: text/html */*;charset=gbk]
[<iframe>: combined response Content-Type: text/html;" text/plain]
expected: FAIL

[<iframe>: combined response Content-Type: text/html;" \\" text/plain]
[<iframe>: separate response Content-Type: text/html;x=" text/plain]
expected: FAIL

3 changes: 0 additions & 3 deletions tests/wpt/metadata/fetch/content-type/script.window.js.ini
Expand Up @@ -56,9 +56,6 @@
[separate text/javascript x/x]
expected: FAIL

[separate text/javascript;charset=windows-1252 error text/javascript]
expected: FAIL

[separate text/javascript ]
expected: FAIL

Expand Up @@ -11,6 +11,3 @@
[X-Content-Type-Options%3A%20nosniff%0C]
expected: FAIL

[X-Content-Type-Options%3A%20'NosniFF']
expected: FAIL

This file was deleted.

This file was deleted.

@@ -1,4 +1,4 @@
[traverse_the_history_2.html]
[traverse_the_history_5.html]
[Multiple history traversals, last would be aborted]
expected: FAIL

@@ -1,4 +1,5 @@
[sharedworker-in-worker.html]
expected: ERROR
[Base URL in workers: new SharedWorker()]
expected: FAIL

@@ -1,5 +1,4 @@
[005.html]
expected: ERROR
[dedicated worker in shared worker in dedicated worker]
expected: FAIL

@@ -0,0 +1,50 @@
<!DOCTYPE html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>

const videoElementTests =
[
{
createDetector: () => { return new FaceDetector(); },
name: "Face - detect(HTMLVideoElement)",
},
{
createDetector: () => { return new BarcodeDetector(); },
name: "Barcode - detect(HTMLVideoElement)",
}
];

for (let videoElementTest of videoElementTests) {

// Detector's detect() rejects on a HAVE_NOTHING HTMLVideoElement.
promise_test(async t => {
const video = document.createElement("video");
video.src = "";
const videoWatcher = new EventWatcher(t, video, ["play", "error"]);
video.load();
await videoWatcher.wait_for("error");
assert_equals(video.readyState, video.HAVE_NOTHING);

const detector = videoElementTest.createDetector();
await promise_rejects(t, 'InvalidStateError', detector.detect(video));
}, `${videoElementTest.name} - HAVE_NOTHING`);

// Detector's detect() rejects on a HAVE_METADATA HTMLVideoElement.
promise_test(async t => {
const video = document.createElement("video");
video.src = "/media/white.webm";
video.loop = true;
video.autoplay = true;
const videoWatcher = new EventWatcher(t, video, ["loadedmetadata", "error"]);
video.load();
await videoWatcher.wait_for("loadedmetadata");
assert_equals(video.readyState, video.HAVE_METADATA);

const detector = videoElementTest.createDetector();
await promise_rejects(t, 'InvalidStateError', detector.detect(video));
}, `${videoElementTest.name} - HAVE_METADATA`);

}

</script>

0 comments on commit b0f3d08

Please sign in to comment.