From b0306986f806b9a917966fcf0ae9bf13d5d2e23b Mon Sep 17 00:00:00 2001 From: Alan Cutter Date: Wed, 12 Apr 2017 18:05:54 +1000 Subject: [PATCH 1/3] updateNodeToV6 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 238052ac..bf9039b2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ language: node_js node_js: - - "4.4.4" + - "6.10.2" install: - BROWSER="Firefox-stable" ./.travis-setup.sh From a9b723540536e123408c853cdef94fcc9642db81 Mon Sep 17 00:00:00 2001 From: Alan Cutter Date: Wed, 12 Apr 2017 16:28:57 +1000 Subject: [PATCH 2/3] fixColorTest --- test/js/color-handler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/js/color-handler.js b/test/js/color-handler.js index eb0950b0..2437ea44 100644 --- a/test/js/color-handler.js +++ b/test/js/color-handler.js @@ -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)'); From 0d17d49bca6968853491c7658da4caa467ed6382 Mon Sep 17 00:00:00 2001 From: Alan Cutter Date: Wed, 12 Apr 2017 17:58:51 +1000 Subject: [PATCH 3/3] matrixCrash --- src/matrix-decomposition.js | 2 +- test/js/matrix-interpolation.js | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/matrix-decomposition.js b/src/matrix-decomposition.js index 57e787be..948104c3 100644 --- a/src/matrix-decomposition.js +++ b/src/matrix-decomposition.js @@ -121,7 +121,7 @@ } if (determinant(perspectiveMatrix) === 0) { - return false; + return null; } var rhs = []; diff --git a/test/js/matrix-interpolation.js b/test/js/matrix-interpolation.js index 383a1516..580678d5 100644 --- a/test/js/matrix-interpolation.js +++ b/test/js/matrix-interpolation.js @@ -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)',