зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1283387 part 4 - Add further tests for simple iteration progress and current iteration when using an end delay r=hiro
MozReview-Commit-ID: 3EicipZgOUa --HG-- extra : rebase_source : 4ca107a0292931a08f91f1c9bb690b6c6568ffc8
This commit is contained in:
Родитель
d34c2dfad3
Коммит
d744f5c00b
|
@ -463,5 +463,122 @@ runTests([
|
|||
}
|
||||
], 'Test infinity iterations');
|
||||
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
//
|
||||
// End delay tests
|
||||
//
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
runTests([
|
||||
{
|
||||
input: { duration: 100,
|
||||
delay: 1,
|
||||
fill: 'both',
|
||||
endDelay: 50 },
|
||||
before: 0,
|
||||
active: 0,
|
||||
after: 0
|
||||
},
|
||||
|
||||
{
|
||||
input: { duration: 100,
|
||||
delay: 1,
|
||||
fill: 'both',
|
||||
endDelay: -50 },
|
||||
before: 0,
|
||||
active: 0,
|
||||
after: 0
|
||||
},
|
||||
|
||||
{
|
||||
input: { duration: 100,
|
||||
delay: 1,
|
||||
fill: 'both',
|
||||
endDelay: -100 },
|
||||
before: 0,
|
||||
active: 0,
|
||||
after: 0
|
||||
},
|
||||
|
||||
{
|
||||
input: { duration: 100,
|
||||
delay: 1,
|
||||
fill: 'both',
|
||||
endDelay: -200 },
|
||||
before: 0,
|
||||
active: 0,
|
||||
after: 0
|
||||
},
|
||||
|
||||
{
|
||||
input: { iterationStart: 0.5,
|
||||
duration: 100,
|
||||
delay: 1,
|
||||
fill: 'both',
|
||||
endDelay: 50 },
|
||||
before: 0,
|
||||
active: 0,
|
||||
after: 1
|
||||
},
|
||||
|
||||
{
|
||||
input: { iterationStart: 0.5,
|
||||
duration: 100,
|
||||
delay: 1,
|
||||
fill: 'both',
|
||||
endDelay: -50 },
|
||||
before: 0,
|
||||
active: 0,
|
||||
after: 0
|
||||
},
|
||||
|
||||
{
|
||||
input: { iterationStart: 0.5,
|
||||
duration: 100,
|
||||
delay: 1,
|
||||
fill: 'both',
|
||||
endDelay: -100 },
|
||||
before: 0,
|
||||
active: 0,
|
||||
after: 0
|
||||
},
|
||||
|
||||
{
|
||||
input: { iterations: 2,
|
||||
duration: 100,
|
||||
delay: 1,
|
||||
fill: 'both',
|
||||
endDelay: -100 },
|
||||
before: 0,
|
||||
active: 0,
|
||||
after: 0
|
||||
},
|
||||
|
||||
{
|
||||
input: { iterations: 1,
|
||||
iterationStart: 2,
|
||||
duration: 100,
|
||||
delay: 1,
|
||||
fill: 'both',
|
||||
endDelay: -50 },
|
||||
before: 2,
|
||||
active: 2,
|
||||
after: 2
|
||||
},
|
||||
|
||||
{
|
||||
input: { iterations: 1,
|
||||
iterationStart: 2,
|
||||
duration: 100,
|
||||
delay: 1,
|
||||
fill: 'both',
|
||||
endDelay: -100 },
|
||||
before: 2,
|
||||
active: 2,
|
||||
after: 2
|
||||
},
|
||||
], 'Test end delay');
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
|
|
@ -454,5 +454,122 @@ runTests([
|
|||
}
|
||||
], 'Test infinity iterations');
|
||||
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
//
|
||||
// End delay tests
|
||||
//
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
runTests([
|
||||
{
|
||||
input: { duration: 100,
|
||||
delay: 1,
|
||||
fill: 'both',
|
||||
endDelay: 50 },
|
||||
before: 0,
|
||||
active: 0,
|
||||
after: 1
|
||||
},
|
||||
|
||||
{
|
||||
input: { duration: 100,
|
||||
delay: 1,
|
||||
fill: 'both',
|
||||
endDelay: -50 },
|
||||
before: 0,
|
||||
active: 0,
|
||||
after: 0.5
|
||||
},
|
||||
|
||||
{
|
||||
input: { duration: 100,
|
||||
delay: 1,
|
||||
fill: 'both',
|
||||
endDelay: -100 },
|
||||
before: 0,
|
||||
active: 0,
|
||||
after: 0
|
||||
},
|
||||
|
||||
{
|
||||
input: { duration: 100,
|
||||
delay: 1,
|
||||
fill: 'both',
|
||||
endDelay: -200 },
|
||||
before: 0,
|
||||
active: 0,
|
||||
after: 0
|
||||
},
|
||||
|
||||
{
|
||||
input: { iterationStart: 0.5,
|
||||
duration: 100,
|
||||
delay: 1,
|
||||
fill: 'both',
|
||||
endDelay: 50 },
|
||||
before: 0.5,
|
||||
active: 0.5,
|
||||
after: 0.5
|
||||
},
|
||||
|
||||
{
|
||||
input: { iterationStart: 0.5,
|
||||
duration: 100,
|
||||
delay: 1,
|
||||
fill: 'both',
|
||||
endDelay: -50 },
|
||||
before: 0.5,
|
||||
active: 0.5,
|
||||
after: 1
|
||||
},
|
||||
|
||||
{
|
||||
input: { iterationStart: 0.5,
|
||||
duration: 100,
|
||||
delay: 1,
|
||||
fill: 'both',
|
||||
endDelay: -100 },
|
||||
before: 0.5,
|
||||
active: 0.5,
|
||||
after: 0.5
|
||||
},
|
||||
|
||||
{
|
||||
input: { iterations: 2,
|
||||
duration: 100,
|
||||
delay: 1,
|
||||
fill: 'both',
|
||||
endDelay: -100 },
|
||||
before: 0,
|
||||
active: 0,
|
||||
after: 1
|
||||
},
|
||||
|
||||
{
|
||||
input: { iterations: 1,
|
||||
iterationStart: 2,
|
||||
duration: 100,
|
||||
delay: 1,
|
||||
fill: 'both',
|
||||
endDelay: -50 },
|
||||
before: 0,
|
||||
active: 0,
|
||||
after: 0.5
|
||||
},
|
||||
|
||||
{
|
||||
input: { iterations: 1,
|
||||
iterationStart: 2,
|
||||
duration: 100,
|
||||
delay: 1,
|
||||
fill: 'both',
|
||||
endDelay: -100 },
|
||||
before: 0,
|
||||
active: 0,
|
||||
after: 0
|
||||
},
|
||||
], 'Test end delay');
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
|
Загрузка…
Ссылка в новой задаче