mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Update web-platform-tests to revision 670f3ef16f9b38e22e3b863dcdc2ea860348929a
This commit is contained in:
parent
5011e9c21c
commit
e3a9df4e78
33 changed files with 274 additions and 116 deletions
|
@ -34,3 +34,6 @@
|
|||
[Revoke blob URL after creating Request, will fetch]
|
||||
expected: FAIL
|
||||
|
||||
[Revoke blob URL after calling fetch, fetch should succeed]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -19627,9 +19627,9 @@
|
|||
{}
|
||||
]
|
||||
],
|
||||
"web-share/share-image-manual.https.html": [
|
||||
"web-share/share-image-manual.tentative.https.html": [
|
||||
[
|
||||
"web-share/share-image-manual.https.html",
|
||||
"web-share/share-image-manual.tentative.https.html",
|
||||
{}
|
||||
]
|
||||
],
|
||||
|
@ -165739,6 +165739,18 @@
|
|||
{}
|
||||
]
|
||||
],
|
||||
"css/css-values/percentage-rem-low.html": [
|
||||
[
|
||||
"css/css-values/percentage-rem-low.html",
|
||||
[
|
||||
[
|
||||
"/css/reference/ref-filled-green-100px-square-only.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
{}
|
||||
]
|
||||
],
|
||||
"css/css-values/q-unit-case-insensitivity-001.html": [
|
||||
[
|
||||
"css/css-values/q-unit-case-insensitivity-001.html",
|
||||
|
@ -309677,6 +309689,12 @@
|
|||
}
|
||||
]
|
||||
],
|
||||
"compat/webkit-box-ignore-box-pack.html": [
|
||||
[
|
||||
"compat/webkit-box-ignore-box-pack.html",
|
||||
{}
|
||||
]
|
||||
],
|
||||
"compat/webkit-box-removing-triggering-anonymous-merge.html": [
|
||||
[
|
||||
"compat/webkit-box-removing-triggering-anonymous-merge.html",
|
||||
|
@ -333019,6 +333037,14 @@
|
|||
{}
|
||||
]
|
||||
],
|
||||
"css/selectors/focus-visible-011.html": [
|
||||
[
|
||||
"css/selectors/focus-visible-011.html",
|
||||
{
|
||||
"testdriver": true
|
||||
}
|
||||
]
|
||||
],
|
||||
"css/selectors/focus-within-009.html": [
|
||||
[
|
||||
"css/selectors/focus-within-009.html",
|
||||
|
@ -369575,6 +369601,14 @@
|
|||
{}
|
||||
]
|
||||
],
|
||||
"media-source/mediasource-replay.html": [
|
||||
[
|
||||
"media-source/mediasource-replay.html",
|
||||
{
|
||||
"timeout": "long"
|
||||
}
|
||||
]
|
||||
],
|
||||
"media-source/mediasource-seek-beyond-duration.html": [
|
||||
[
|
||||
"media-source/mediasource-seek-beyond-duration.html",
|
||||
|
@ -462389,7 +462423,7 @@
|
|||
"support"
|
||||
],
|
||||
"README.md": [
|
||||
"f728d502e17783c92114c904597eb3cc9b8c473a",
|
||||
"320176c40ce4d4fc3bfdbd6a637c87e59143cb20",
|
||||
"support"
|
||||
],
|
||||
"WebCryptoAPI/META.yml": [
|
||||
|
@ -468048,6 +468082,10 @@
|
|||
"06e728342cdb63a72b420423b40b6e32ae3e2162",
|
||||
"reftest"
|
||||
],
|
||||
"compat/webkit-box-ignore-box-pack.html": [
|
||||
"80b52fbf1fe13a7c9ec5288f301194e40a381430",
|
||||
"testharness"
|
||||
],
|
||||
"compat/webkit-box-removing-triggering-anonymous-merge.html": [
|
||||
"8506425548b6ff97491e388dc1a1f3830aa790fc",
|
||||
"testharness"
|
||||
|
@ -606872,6 +606910,10 @@
|
|||
"d7dd4edb5880e9162a702e3c1ce0a5540dc42679",
|
||||
"testharness"
|
||||
],
|
||||
"css/css-values/percentage-rem-low.html": [
|
||||
"d06e7522a68e08f2b70cf9ccd71517bbf582b112",
|
||||
"reftest"
|
||||
],
|
||||
"css/css-values/q-unit-case-insensitivity-001.html": [
|
||||
"b4a08aa117952c6f92e2aec6f57843b46a460104",
|
||||
"reftest"
|
||||
|
@ -617940,6 +617982,10 @@
|
|||
"eb01204b29c8e30b651b083459c01983b99dd70d",
|
||||
"testharness"
|
||||
],
|
||||
"css/selectors/focus-visible-011.html": [
|
||||
"f95458fc4d3e4a538ecf8788b87528a9a138db5c",
|
||||
"testharness"
|
||||
],
|
||||
"css/selectors/focus-within-001-ref.html": [
|
||||
"2913775a2204eb173ba45251a84ab2c01cda35bc",
|
||||
"support"
|
||||
|
@ -619817,7 +619863,7 @@
|
|||
"support"
|
||||
],
|
||||
"css/support/interpolation-testcommon.js": [
|
||||
"24c47e136c8d98603238a09dbb64bd79cd6751d2",
|
||||
"9e63b02cb703d44e909c0c525f3bd56708477dda",
|
||||
"support"
|
||||
],
|
||||
"css/support/parsing-testcommon.js": [
|
||||
|
@ -660689,7 +660735,7 @@
|
|||
"support"
|
||||
],
|
||||
"interfaces/media-capabilities.idl": [
|
||||
"ef4582d9c8c7c1d970cf399e9a9287dae8ba4fab",
|
||||
"e067fdc746dd85161fb8e0e7e8f254a3d3d0f5f9",
|
||||
"support"
|
||||
],
|
||||
"interfaces/media-playback-quality.idl": [
|
||||
|
@ -660913,7 +660959,7 @@
|
|||
"support"
|
||||
],
|
||||
"interfaces/web-nfc.idl": [
|
||||
"25354795b259f48b841ac7d7811c2fd1c31600d0",
|
||||
"b917d5e2c11c5b34344638e2d0a2c2526c76137b",
|
||||
"support"
|
||||
],
|
||||
"interfaces/web-share.idl": [
|
||||
|
@ -663440,6 +663486,10 @@
|
|||
"0388565329ff0d734785715a7b7d720c53b3feaa",
|
||||
"testharness"
|
||||
],
|
||||
"media-source/mediasource-replay.html": [
|
||||
"05a8c0a918ab94bc1d4303b85ef3500e3cea9ddb",
|
||||
"testharness"
|
||||
],
|
||||
"media-source/mediasource-seek-beyond-duration.html": [
|
||||
"8b07c9f80172c14bcda78e3bf5ba9a7a4be3006c",
|
||||
"testharness"
|
||||
|
@ -712176,7 +712226,7 @@
|
|||
"c3941bb4065b28c7f8fd4f615b8ec595ea5281a7",
|
||||
"manual"
|
||||
],
|
||||
"web-share/share-image-manual.https.html": [
|
||||
"web-share/share-image-manual.tentative.https.html": [
|
||||
"48ea4c378c194691b78d1b365999408322345a37",
|
||||
"manual"
|
||||
],
|
||||
|
|
|
@ -5,9 +5,9 @@
|
|||
[[data-expected-height\] 7]
|
||||
expected: FAIL
|
||||
|
||||
[[data-expected-height\] 3]
|
||||
[[data-expected-height\] 1]
|
||||
expected: FAIL
|
||||
|
||||
[[data-expected-height\] 4]
|
||||
[[data-expected-height\] 2]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
[mix-blend-mode-animation.html]
|
||||
expected: FAIL
|
|
@ -1,5 +1,4 @@
|
|||
[perspective-interpolation.html]
|
||||
expected: CRASH
|
||||
[ perspective interpolation]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
type: testharness
|
||||
|
||||
[single-byte-decoder.html?document]
|
||||
expected: TIMEOUT
|
||||
[ISO-8859-4: iso_8859-4:1988 (document.characterSet and document.inputEncoding)]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -312,24 +312,21 @@
|
|||
[<iframe>: separate response Content-Type: */* text/html]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: separate response Content-Type: text/html */*]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: combined response Content-Type: text/html;charset=gbk text/plain text/html]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: separate response Content-Type: text/html */*;charset=gbk]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: separate response Content-Type: text/html;x=" text/plain]
|
||||
[<iframe>: combined response Content-Type: */* text/html]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: separate response Content-Type: text/html;" \\" text/plain]
|
||||
[<iframe>: combined response Content-Type: text/html */*]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: combined response Content-Type: text/html;x=" text/plain]
|
||||
[<iframe>: separate response Content-Type: text/plain */*]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: separate response Content-Type: text/plain */*;charset=gbk]
|
||||
[<iframe>: combined response Content-Type: text/html;" \\" text/plain]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -56,6 +56,9 @@
|
|||
[separate text/javascript x/x]
|
||||
expected: FAIL
|
||||
|
||||
[separate text/javascript error]
|
||||
[separate text/javascript;charset=windows-1252 error text/javascript]
|
||||
expected: FAIL
|
||||
|
||||
[separate text/javascript;charset=windows-1252 text/javascript]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -11,9 +11,6 @@
|
|||
[X-Content-Type-Options%3A%20nosniff%0C]
|
||||
expected: FAIL
|
||||
|
||||
[X-Content-Type-Options%3A%20%22nosniFF%22]
|
||||
expected: FAIL
|
||||
|
||||
[X-Content-Type-Options%3A%20no%0D%0AX-Content-Type-Options%3A%20nosniff]
|
||||
[X-Content-Type-Options%3A%20%2Cnosniff]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -8,14 +8,8 @@
|
|||
expected: FAIL
|
||||
|
||||
[Embedded credentials are treated as network errors in new windows.]
|
||||
expected: TIMEOUT
|
||||
|
||||
[Embedded credentials matching the top-level are not treated as network errors for relative URLs.]
|
||||
expected: TIMEOUT
|
||||
|
||||
[Embedded credentials matching the top-level are not treated as network errors for same-origin URLs.]
|
||||
expected: TIMEOUT
|
||||
|
||||
[Embedded credentials matching the top-level are treated as network errors for cross-origin URLs.]
|
||||
expected: FAIL
|
||||
|
||||
[Embedded credentials matching the top-level are treated as network errors for cross-origin URLs.]
|
||||
expected: TIMEOUT
|
||||
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
[traverse_the_history_5.html]
|
||||
[Multiple history traversals, last would be aborted]
|
||||
expected: FAIL
|
||||
|
|
@ -1,23 +1,8 @@
|
|||
[location-protocol-setter-non-broken.html]
|
||||
type: testharness
|
||||
[Set data URL frame location.protocol to x]
|
||||
expected: FAIL
|
||||
|
||||
[Set data URL frame location.protocol to data]
|
||||
expected: FAIL
|
||||
|
||||
[Set data URL frame location.protocol to file]
|
||||
expected: FAIL
|
||||
|
||||
[Set data URL frame location.protocol to ftp]
|
||||
expected: FAIL
|
||||
|
||||
[Set data URL frame location.protocol to gopher]
|
||||
expected: FAIL
|
||||
|
||||
[Set data URL frame location.protocol to http+x]
|
||||
expected: FAIL
|
||||
|
||||
[Set HTTP URL frame location.protocol to gopher]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[embedded-opener-remove-frame.html]
|
||||
expected: TIMEOUT
|
||||
expected: CRASH
|
||||
[opener and "removed" embedded documents]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,8 +1,4 @@
|
|||
[skip-document-with-fragment.html]
|
||||
expected: TIMEOUT
|
||||
[Autofocus elements in iframed documents with URL fragments should be skipped.]
|
||||
expected: FAIL
|
||||
|
||||
[Autofocus elements in top-level browsing context's documents with URI fragments should be skipped.]
|
||||
expected: TIMEOUT
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
[iframe_sandbox_popups_escaping-3.html]
|
||||
type: testharness
|
||||
expected: TIMEOUT
|
||||
[Check that popups from a sandboxed iframe escape the sandbox if\n allow-popups-to-escape-sandbox is used]
|
||||
expected: TIMEOUT
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
[iframe_sandbox_popups_nonescaping-1.html]
|
||||
type: testharness
|
||||
expected: TIMEOUT
|
||||
[Check that popups from a sandboxed iframe do not escape the sandbox]
|
||||
expected: NOTRUN
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
[iframe_sandbox_popups_nonescaping-3.html]
|
||||
type: testharness
|
||||
expected: TIMEOUT
|
||||
[Check that popups from a sandboxed iframe do not escape the sandbox]
|
||||
expected: NOTRUN
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[form-double-submit.html]
|
||||
expected: ERROR
|
||||
[default submit action should supersede onclick submit()]
|
||||
expected: TIMEOUT
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
[form-submission-algorithm.html]
|
||||
expected: TIMEOUT
|
||||
[If form's firing submission events is true, then return; 'submit' event]
|
||||
expected: FAIL
|
||||
|
||||
[If form's firing submission events is true, then return; 'invalid' event]
|
||||
expected: FAIL
|
||||
|
||||
[Cannot navigate (after constructing the entry list)]
|
||||
expected: TIMEOUT
|
||||
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
[toggleEvent.html]
|
||||
[Calling open twice on 'details' fires only one toggle event]
|
||||
expected: FAIL
|
||||
|
||||
[Setting open=true to opened 'details' element should not fire a toggle event at the 'details' element]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
[realtimeanalyser-fft-scaling.html]
|
||||
expected: TIMEOUT
|
||||
[X 2048-point FFT peak position is not equal to 64. Got 0.]
|
||||
expected: FAIL
|
||||
|
||||
|
|
5
tests/wpt/metadata/webmessaging/with-ports/018.html.ini
Normal file
5
tests/wpt/metadata/webmessaging/with-ports/018.html.ini
Normal file
|
@ -0,0 +1,5 @@
|
|||
[018.html]
|
||||
expected: TIMEOUT
|
||||
[origin of the script that invoked the method, javascript:]
|
||||
expected: TIMEOUT
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
[005.html]
|
||||
expected: ERROR
|
||||
[dedicated worker in shared worker in dedicated worker]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -251,27 +251,3 @@ If you spot an issue with a test and are not comfortable providing a
|
|||
pull request per above to fix it, please
|
||||
[file a new issue](https://github.com/web-platform-tests/wpt/issues/new).
|
||||
Thank you!
|
||||
|
||||
Lint tool
|
||||
---------
|
||||
|
||||
We have a lint tool for catching common mistakes in test files. You
|
||||
can run it manually by starting the `lint` executable from the root of
|
||||
your local web-platform-tests working directory like this:
|
||||
|
||||
```
|
||||
./wpt lint
|
||||
```
|
||||
|
||||
The lint tool is also run automatically for every submitted pull
|
||||
request, and reviewers will not merge branches with tests that have
|
||||
lint errors, so you must fix any errors the lint tool reports.
|
||||
|
||||
In the unusual case of error reports for things essential to a
|
||||
certain test or that for other exceptional reasons shouldn't prevent
|
||||
a merge of a test, update and commit the `lint.whitelist` file in the
|
||||
web-platform-tests root directory to suppress the error reports.
|
||||
|
||||
For more details, see the [lint-tool documentation][lint-tool].
|
||||
|
||||
[lint-tool]: https://web-platform-tests.org/writing-tests/lint-tool.html
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
<!DOCTYPE html>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<style>
|
||||
#outer {
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-box-pack: center;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
#inner {
|
||||
width: 100px;
|
||||
height: 200px;
|
||||
}
|
||||
</style>
|
||||
<div id="outer">
|
||||
<div id="inner"></div>
|
||||
</div>
|
||||
<script>
|
||||
test(function() {
|
||||
var child = document.getElementById("inner");
|
||||
assert_greater_than(child.offsetTop, 0);
|
||||
}, "Child should be positioned at y-offset greater than 0 if children exceed bounds of parent");
|
||||
</script>
|
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>REM value with :root set to low percentage</title>
|
||||
<link rel="author" title="Jon Ege Ronnenberg" href="mailto:jon.ronnenberg+wpt@gmail.com">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-values/#rem">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-fonts/#length-percentage-size-value">
|
||||
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
|
||||
<meta name="assert" content="When :root font-size is 25%, a 25rem length must be 100px, if the browser default for :root font-size is 16px.">
|
||||
<style>
|
||||
:root {
|
||||
/* default is 16px in all desktop browsers */
|
||||
/* the math for 100px is: 16px * 0.25 = 4px/rem -> 100px / 4px/rem = 25rem = 100px */
|
||||
font-size: 25%;
|
||||
}
|
||||
.rem {
|
||||
width: 25rem;
|
||||
height: 25rem;
|
||||
background-color: green;
|
||||
}
|
||||
</style>
|
||||
<p style="font-size:initial;">Test passes if there is a filled green square.</p>
|
||||
<div class="rem"></div>
|
|
@ -0,0 +1,58 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>CSS Test (Selectors): :focus-visible matches even if preventDefault() is called</title>
|
||||
<link rel="author" title="Alice Boxhall" href="aboxhall@chromium.org" />
|
||||
<link rel="help" href="https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo" />
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/resources/testdriver.js"></script>
|
||||
<script src="/resources/testdriver-vendor.js"></script>
|
||||
<style>
|
||||
button {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
#next:focus-visible {
|
||||
outline: darkgreen auto 5px;
|
||||
}
|
||||
|
||||
#next:focus:not(:focus-visible) {
|
||||
background-color: tomato;
|
||||
outline: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
This test checks that <code>:focus-visible</code> matches after a keyboard event,
|
||||
even if the event handler calls preventDefault() on the event.
|
||||
<ul id="instructions">
|
||||
<li>Click "Click here and press right arrow.".</li>
|
||||
<li>Press the right arrow key.</li>
|
||||
<li>If "Focus moves here." has a red background, then the test result is FAILURE.
|
||||
If it has a green outline, then the test result is SUCCESS.</li>
|
||||
</ul>
|
||||
<br />
|
||||
<button id="start" tabindex="0">Click here and press right arrow.</button>
|
||||
<button id="next" tabindex="-1">Focus moves here.</button>
|
||||
<script>
|
||||
start.addEventListener('keydown', (e) => {
|
||||
next.focus();
|
||||
});
|
||||
|
||||
async_test(async function(t) {
|
||||
next.addEventListener("focus", t.step_func(() => {
|
||||
assert_equals(getComputedStyle(next).outlineColor, "rgb(0, 100, 0)");
|
||||
t.done()
|
||||
}));
|
||||
|
||||
// \ue014 -> ARROW_RIGHT
|
||||
test_driver.send_keys(start, "\ue014").catch(t.step_func(() => {
|
||||
assert_true(false, "send_keys not implemented yet");
|
||||
t.done();
|
||||
}));
|
||||
}, ":focus-visible matches even if preventDefault() is called");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -284,7 +284,7 @@
|
|||
comparisonFunction(
|
||||
getComputedStyle(target).getPropertyValue(property),
|
||||
expectedValue);
|
||||
}, `${testText} at (${expectation.at}) should be [${sanitizeUrls(expectedValue)}]`);
|
||||
}, `${testText} at (${expectation.at}) should be [${sanitizeUrls(expectation.expect)}]`);
|
||||
};
|
||||
return target;
|
||||
});
|
||||
|
|
|
@ -34,6 +34,27 @@ dictionary VideoConfiguration {
|
|||
required unsigned long long bitrate;
|
||||
required double framerate;
|
||||
boolean hasAlphaChannel;
|
||||
HdrMetadataType hdrMetadataType;
|
||||
ColorGamut colorGamut;
|
||||
TransferFunction transferFunction;
|
||||
};
|
||||
|
||||
enum HdrMetadataType {
|
||||
"smpteSt2086",
|
||||
"smpteSt2094-10",
|
||||
"smpteSt2094-40"
|
||||
};
|
||||
|
||||
enum ColorGamut {
|
||||
"srgb",
|
||||
"p3",
|
||||
"rec2020"
|
||||
};
|
||||
|
||||
enum TransferFunction {
|
||||
"srgb",
|
||||
"pq",
|
||||
"hlg"
|
||||
};
|
||||
|
||||
dictionary AudioConfiguration {
|
||||
|
@ -80,23 +101,3 @@ interface MediaCapabilities {
|
|||
[NewObject] Promise<MediaCapabilitiesDecodingInfo> decodingInfo(MediaDecodingConfiguration configuration);
|
||||
[NewObject] Promise<MediaCapabilitiesInfo> encodingInfo(MediaEncodingConfiguration configuration);
|
||||
};
|
||||
|
||||
[Exposed=Window]
|
||||
interface ScreenLuminance {
|
||||
readonly attribute double min;
|
||||
readonly attribute double max;
|
||||
readonly attribute double maxAverage;
|
||||
};
|
||||
|
||||
enum ScreenColorGamut {
|
||||
"srgb",
|
||||
"p3",
|
||||
"rec2020",
|
||||
};
|
||||
|
||||
partial interface Screen {
|
||||
readonly attribute ScreenColorGamut colorGamut;
|
||||
readonly attribute ScreenLuminance? luminance;
|
||||
|
||||
attribute EventHandler onchange;
|
||||
};
|
||||
|
|
|
@ -53,9 +53,8 @@ interface NDEFReader : EventTarget {
|
|||
constructor();
|
||||
|
||||
attribute EventHandler onreading;
|
||||
attribute EventHandler onerror;
|
||||
|
||||
void scan(optional NDEFScanOptions options={});
|
||||
Promise<void> scan(optional NDEFScanOptions options={});
|
||||
};
|
||||
|
||||
[SecureContext, Exposed=Window]
|
||||
|
@ -71,17 +70,6 @@ dictionary NDEFReadingEventInit : EventInit {
|
|||
required NDEFMessageInit message;
|
||||
};
|
||||
|
||||
[SecureContext, Exposed=Window]
|
||||
interface NDEFErrorEvent : Event {
|
||||
constructor(DOMString type, NDEFErrorEventInit errorEventInitDict);
|
||||
|
||||
readonly attribute DOMException error;
|
||||
};
|
||||
|
||||
dictionary NDEFErrorEventInit : EventInit {
|
||||
required DOMException error;
|
||||
};
|
||||
|
||||
dictionary NDEFPushOptions {
|
||||
NDEFPushTarget target = "any";
|
||||
unrestricted double timeout = Infinity;
|
||||
|
|
|
@ -0,0 +1,41 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- Copyright © 2019 Igalia S.L -->
|
||||
<html>
|
||||
<head>
|
||||
<title>MediaSource replay test case.</title>
|
||||
<meta name="timeout" content="long">
|
||||
<meta charset="utf-8">
|
||||
<link rel="author" title="Alicia Boya García" href="mailto:aboya@igalia.com">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="mediasource-util.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
mediasource_testafterdataloaded(function (test, mediaElement, mediaSource, segmentInfo, sourceBuffer, mediaData) {
|
||||
mediaElement.addEventListener('error', test.unreached_func("Unexpected event 'error'"));
|
||||
|
||||
test.expectEvent(sourceBuffer, 'updateend', 'sourceBuffer');
|
||||
|
||||
sourceBuffer.appendBuffer(mediaData);
|
||||
|
||||
test.waitForExpectedEvents(function () {
|
||||
mediaSource.endOfStream();
|
||||
|
||||
// Start playing near the end.
|
||||
mediaElement.currentTime = 6.2;
|
||||
mediaElement.play();
|
||||
test.expectEvent(mediaElement, 'ended', 'mediaElement');
|
||||
});
|
||||
|
||||
test.waitForExpectedEvents(function () {
|
||||
mediaElement.play();
|
||||
assert_equals(mediaElement.currentTime, 0, "currentTime");
|
||||
// If currentTime is able to advance, the player did not get stuck and it's a pass.
|
||||
test.waitForCurrentTimeChange(mediaElement, test.step_func_done());
|
||||
});
|
||||
}, "Test replaying video after 'ended'");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,4 +1,5 @@
|
|||
[canvas-resizing-with-pbo-bound.html]
|
||||
expected: TIMEOUT
|
||||
[WebGL test #0: Unable to fetch WebGL rendering context for Canvas]
|
||||
expected: FAIL
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue