Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: node_js

node_js:
- "4.4.4"
- "6.10.2"

install:
- BROWSER="Firefox-stable" ./.travis-setup.sh
Expand Down
2 changes: 1 addition & 1 deletion src/matrix-decomposition.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
}

if (determinant(perspectiveMatrix) === 0) {
return false;
return null;
}

var rhs = [];
Expand Down
2 changes: 1 addition & 1 deletion test/js/color-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ suite('color-handler', function() {
test('invalid colors fail to parse', function() {
assert.isUndefined(parseColor(''));
assert.isUndefined(parseColor('bananayellow'));
assert.isUndefined(parseColor('rgb(10, 20, 30, 40)'));
assert.isUndefined(parseColor('rgb(10, 20, 30, 40, 50)'));
});
test('color interpolation', function() {
assert.equal(webAnimations1.propertyInterpolation('color', '#00aa11', '#aa00bb')(0.2), 'rgba(34,136,51,1)');
Expand Down
9 changes: 9 additions & 0 deletions test/js/matrix-interpolation.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@ suite('matrix interpolation', function() {
var evaluatedInterp = interpolatedMatrix(0.5);
compareMatrices(evaluatedInterp, [1, -0.1, 0, 1, 0, 0], 6);

var interpolatedMatrix = webAnimations1.propertyInterpolation(
'transform',
'matrix(0, 0, 0, 0, 0, 0)',
'matrix(1, 0, 0, 1, 0, 0)');
var evaluatedInterp = interpolatedMatrix(0.25);
compareMatrices(evaluatedInterp, [0, 0, 0, 0, 0, 0], 6);
evaluatedInterp = interpolatedMatrix(0.75);
compareMatrices(evaluatedInterp, [1, 0, 0, 1, 0, 0], 6);

interpolatedMatrix = webAnimations1.propertyInterpolation(
'transform',
'matrix(1, 0, 0, 1, 0, 0)',
Expand Down