Update web-platform-tests to revision 71e901cf4534417abfabe4d77a317817f5cc09db

This commit is contained in:
WPT Sync Bot 2019-01-03 20:37:31 -05:00
parent 7c34a70ca8
commit 0bc27d4696
48 changed files with 1125 additions and 147 deletions

View file

@ -135,6 +135,56 @@ test_interpolation(
[{ at: 0.25, expect: 'matrix(2, 0, 0, 2, 100, 0)' }],
'Complete mismatch including length'
);
test_interpolation(
{
property: 'transform',
from: 'rotate(0deg) scaleX(1)',
to: 'rotate(720deg) translateX(0px) scaleX(2)'
},
[{at: 0.25, expect: 'rotate(180deg) matrix(1.25, 0, 0, 1, 0, 0)'}],
'Mismatched lengths (from is shorter), partial match'
);
test_interpolation(
{
property: 'transform',
from: 'rotate(720deg) translateX(0px) scaleX(2)',
to: 'rotate(0deg) scaleX(1)'
},
[{at: 0.25, expect: 'rotate(540deg) matrix(1.75, 0, 0, 1, 0, 0)'}],
'Mismatched lengths (to is shorter), partial match'
);
test_interpolation(
{
property: 'transform',
from: 'scaleX(-3) scaleY(2)',
to: 'scaleY(-3) translateX(0px) scaleX(2)'
},
[{at: 0.25, expect: 'scale(-2, 0) matrix(1.25, 0, 0, 1.75, 0, 0)'}],
'Mismatched lengths (from is shorter), partial match on primitive'
);
test_interpolation(
{
property: 'transform',
from: 'scaleY(-3) translateX(0px) scaleX(2)',
to: 'scaleX(-3) scaleY(2)'
},
[{at: 0.25, expect: 'scale(0, -2) matrix(1.75, 0, 0, 1.25, 0, 0)'}],
'Mismatched lengths (to is shorter), partial match on primitive'
);
test_interpolation(
{
property: 'transform',
from: 'scaleY(-3) translateX(0px)',
to: 'scaleX(-3) scaleY(2)'
},
[{at: 0.25, expect: 'scale(0, -2) matrix(1, 0, 0, 1.25, 0, 0)'}],
'Common prefix on primitive'
);
</script>
</body>
</html>