Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update web-platform-tests to revision 76ef43a54441ca53b6931dd714eb912…
…4404bff76
- Loading branch information
1 parent
a2b195a
commit b0f3d08
Showing
21 changed files
with
181 additions
and
197 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
tests/wpt/metadata/css/cssom-view/matchMedia-display-none-iframe.html.ini
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,3 @@ | |
[X-Content-Type-Options%3A%20nosniff%0C] | ||
expected: FAIL | ||
|
||
[X-Content-Type-Options%3A%20'NosniFF'] | ||
expected: FAIL | ||
|
4 changes: 0 additions & 4 deletions
4
.../wpt/metadata/html/browsers/history/the-history-interface/traverse_the_history_1.html.ini
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
.../wpt/metadata/html/browsers/history/the-history-interface/traverse_the_history_3.html.ini
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...interface/traverse_the_history_2.html.ini → ...interface/traverse_the_history_5.html.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[traverse_the_history_2.html] | ||
[traverse_the_history_5.html] | ||
[Multiple history traversals, last would be aborted] | ||
expected: FAIL | ||
|
1 change: 1 addition & 0 deletions
1
tests/wpt/metadata/workers/baseurl/alpha/sharedworker-in-worker.html.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
[sharedworker-in-worker.html] | ||
expected: ERROR | ||
[Base URL in workers: new SharedWorker()] | ||
expected: FAIL | ||
|
1 change: 0 additions & 1 deletion
1
tests/wpt/metadata/workers/semantics/multiple-workers/005.html.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
[005.html] | ||
expected: ERROR | ||
[dedicated worker in shared worker in dedicated worker] | ||
expected: FAIL | ||
|
50 changes: 50 additions & 0 deletions
50
tests/wpt/web-platform-tests/shape-detection/detection-HTMLVideoElement-invalid-state.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
Oops, something went wrong.