mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
Bug 1266257 - Split iteration progress tests into 'simple iteration progress' and 'active time' tests; r=hiro
MozReview-Commit-ID: 1fc6Wpi9nN8 --HG-- rename : testing/web-platform/tests/web-animations/timing-model/iteration-progress.html => testing/web-platform/tests/web-animations/timing-model/simple-iteration-progress.html
This commit is contained in:
parent
d1b44c418c
commit
c316784247
@ -35264,16 +35264,22 @@
|
||||
"url": "/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-4.html"
|
||||
}
|
||||
],
|
||||
"web-animations/timing-model/active-time.html": [
|
||||
{
|
||||
"path": "web-animations/timing-model/active-time.html",
|
||||
"url": "/web-animations/timing-model/active-time.html"
|
||||
}
|
||||
],
|
||||
"web-animations/timing-model/current-iteration.html": [
|
||||
{
|
||||
"path": "web-animations/timing-model/current-iteration.html",
|
||||
"url": "/web-animations/timing-model/current-iteration.html"
|
||||
}
|
||||
],
|
||||
"web-animations/timing-model/iteration-progress.html": [
|
||||
"web-animations/timing-model/simple-iteration-progress.html": [
|
||||
{
|
||||
"path": "web-animations/timing-model/iteration-progress.html",
|
||||
"url": "/web-animations/timing-model/iteration-progress.html"
|
||||
"path": "web-animations/timing-model/simple-iteration-progress.html",
|
||||
"url": "/web-animations/timing-model/simple-iteration-progress.html"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -0,0 +1,24 @@
|
||||
<!DOCTYPE html>
|
||||
<meta charset=utf-8>
|
||||
<title>Active time tests</title>
|
||||
<link rel="help" href="https://w3c.github.io/web-animations/#active-time">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="../testcommon.js"></script>
|
||||
<body>
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
'use strict';
|
||||
|
||||
async_test(function(t) {
|
||||
var div = createDiv(t);
|
||||
var anim = div.animate({ opacity: [ 0, 1 ] }, { delay: 1 });
|
||||
assert_equals(anim.effect.getComputedTiming().progress, null);
|
||||
anim.finished.then(t.step_func(function() {
|
||||
assert_equals(anim.effect.getComputedTiming().progress, null);
|
||||
t.done();
|
||||
}));
|
||||
}, 'Test progress during before and after phase when fill is none');
|
||||
|
||||
</script>
|
||||
</body>
|
@ -1,8 +1,8 @@
|
||||
<!DOCTYPE html>
|
||||
<meta charset=utf-8>
|
||||
<title>Iteration progress tests</title>
|
||||
<title>Simple iteration progress tests</title>
|
||||
<link rel="help"
|
||||
href="https://w3c.github.io/web-animations/#iteration-progress">
|
||||
href="https://w3c.github.io/web-animations/#simple-iteration-progress">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="../testcommon.js"></script>
|
||||
@ -34,16 +34,6 @@ function executeTests(tests, description) {
|
||||
});
|
||||
}
|
||||
|
||||
async_test(function(t) {
|
||||
var div = createDiv(t);
|
||||
var anim = div.animate({ opacity: [ 0, 1 ] }, { delay: 1 });
|
||||
assert_equals(anim.effect.getComputedTiming().progress, null);
|
||||
anim.finished.then(t.step_func(function() {
|
||||
assert_equals(anim.effect.getComputedTiming().progress, null);
|
||||
t.done();
|
||||
}));
|
||||
}, 'Test progress during before and after phase when fill is none');
|
||||
|
||||
var gTests_zero_iterations = [
|
||||
{
|
||||
input: { iterations: 0,
|
Loading…
Reference in New Issue
Block a user