mirror of
https://github.com/servo/servo.git
synced 2025-08-16 19:05:33 +01:00
Update web-platform-tests to revision 60220357131c65146444da1f54624d5b54d0975d
This commit is contained in:
parent
c45192614c
commit
775b784f79
2144 changed files with 58115 additions and 29658 deletions
|
@ -1,7 +1,6 @@
|
|||
spec: https://drafts.csswg.org/css-animations/
|
||||
suggested_reviewers:
|
||||
- plinss
|
||||
- chunywang
|
||||
- yunxiaoxie
|
||||
- grorg
|
||||
- dbaron
|
||||
- tabatkins
|
||||
|
|
|
@ -14,23 +14,34 @@
|
|||
<body>
|
||||
<div id="log"></div>
|
||||
|
||||
<style>
|
||||
@keyframes test {
|
||||
from { top: 0px; }
|
||||
to { top: 1px; }
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
'use strict';
|
||||
|
||||
promise_test(async () => {
|
||||
const idl = await fetch('/interfaces/css-animations.idl').then(r => r.text());
|
||||
const cssom = await fetch('/interfaces/cssom.idl').then(r => r.text());
|
||||
const dom = await fetch('/interfaces/dom.idl').then(r => r.text());
|
||||
idl_test(
|
||||
['css-animations'],
|
||||
['dom', 'cssom'],
|
||||
idl_array => {
|
||||
try {
|
||||
window.keyframes = document.styleSheets[0].cssRules[0];
|
||||
} catch (e) {
|
||||
// Surfaced in idlharness.js's test_object below.
|
||||
}
|
||||
|
||||
const idl_array = new IdlArray();
|
||||
idl_array.add_idls(idl);
|
||||
idl_array.add_dependency_idls(cssom);
|
||||
idl_array.add_dependency_idls(dom);
|
||||
|
||||
idl_array.test();
|
||||
}, 'Test css-animations IDL implementation');
|
||||
idl_array.add_objects({
|
||||
AnimationEvent: ['new AnimationEvent("animationstart")'],
|
||||
CSSKeyframesRule: ['keyframes'],
|
||||
CSSKeyframeRule: ['keyframes.cssRules[0]'],
|
||||
});
|
||||
},
|
||||
'Test css-animations IDL implementation');
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
|
@ -103,8 +103,6 @@ function waitForFrame() {
|
|||
|
||||
/**
|
||||
* Waits for a requestAnimationFrame callback in the next refresh driver tick.
|
||||
* Note that 'dom.animations-api.core.enabled' pref should be true to use this
|
||||
* function.
|
||||
*/
|
||||
function waitForNextFrame() {
|
||||
const timeAtStart = document.timeline.currentTime;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue