| Index: third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-readonly.html | 
| diff --git a/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-readonly.html b/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-readonly.html | 
| index b6b3cb71b677610702b49966819255e64586eb6f..4e255d781d3f3907772fc7da699c8e870099a449 100644 | 
| --- a/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-readonly.html | 
| +++ b/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-readonly.html | 
| @@ -40,6 +40,74 @@ test(function() { | 
| }, "DOMMatrixReadOnly constructor - 3D matrix"); | 
|  | 
| test(function() { | 
| +    var float32Array = new Float32Array([1, 2, 3, 3, 2, 1]); | 
| +    var matrix2d = DOMMatrixReadOnly.fromFloat32Array(float32Array); | 
| +    assert_true(matrix2d.is2D); | 
| +    assert_equals(matrix2d.a, 1); | 
| +    assert_equals(matrix2d.b, 2); | 
| +    assert_equals(matrix2d.c, 3); | 
| +    assert_equals(matrix2d.d, 3); | 
| +    assert_equals(matrix2d.e, 2); | 
| +    assert_equals(matrix2d.f, 1); | 
| +}, "DOMMatrixReadOnly fromFloat32Array - 2D matrix"); | 
| + | 
| +test(function() { | 
| +    var float64Array = new Float64Array([1, 2, 3, 3.1, 2, 1]); | 
| +    var matrix2d = DOMMatrixReadOnly.fromFloat64Array(float64Array); | 
| +    assert_true(matrix2d.is2D); | 
| +    assert_equals(matrix2d.a, 1); | 
| +    assert_equals(matrix2d.b, 2); | 
| +    assert_equals(matrix2d.c, 3); | 
| +    assert_equals(matrix2d.d, 3.1); | 
| +    assert_equals(matrix2d.e, 2); | 
| +    assert_equals(matrix2d.f, 1); | 
| +}, "DOMMatrixReadOnly fromFloat64Array - 2D matrix"); | 
| + | 
| +test(function() { | 
| +    var float32Array = new Float32Array([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]); | 
| +    var matrix3d = DOMMatrixReadOnly.fromFloat32Array(float32Array); | 
| +    assert_false(matrix3d.is2D); | 
| +    assert_equals(matrix3d.m11, 1); | 
| +    assert_equals(matrix3d.m12, 2); | 
| +    assert_equals(matrix3d.m13, 3); | 
| +    assert_equals(matrix3d.m14, 4); | 
| +    assert_equals(matrix3d.m21, 5); | 
| +    assert_equals(matrix3d.m22, 6); | 
| +    assert_equals(matrix3d.m23, 7); | 
| +    assert_equals(matrix3d.m24, 8); | 
| +    assert_equals(matrix3d.m31, 9); | 
| +    assert_equals(matrix3d.m32, 10); | 
| +    assert_equals(matrix3d.m33, 11); | 
| +    assert_equals(matrix3d.m34, 12); | 
| +    assert_equals(matrix3d.m41, 13); | 
| +    assert_equals(matrix3d.m42, 14); | 
| +    assert_equals(matrix3d.m43, 15); | 
| +    assert_equals(matrix3d.m44, 16); | 
| +}, "DOMMatrixReadOnly fromFloat32Array - 3D matrix"); | 
| + | 
| +test(function() { | 
| +    var float64Array = new Float64Array([1, 2, 3, 4, 5, 6, 7, 8, 9, 10.1, 11, 12, 13, 14, 15, 16.6]); | 
| +    var matrix3d = DOMMatrixReadOnly.fromFloat64Array(float64Array); | 
| +    assert_false(matrix3d.is2D); | 
| +    assert_equals(matrix3d.m11, 1); | 
| +    assert_equals(matrix3d.m12, 2); | 
| +    assert_equals(matrix3d.m13, 3); | 
| +    assert_equals(matrix3d.m14, 4); | 
| +    assert_equals(matrix3d.m21, 5); | 
| +    assert_equals(matrix3d.m22, 6); | 
| +    assert_equals(matrix3d.m23, 7); | 
| +    assert_equals(matrix3d.m24, 8); | 
| +    assert_equals(matrix3d.m31, 9); | 
| +    assert_equals(matrix3d.m32, 10.1); | 
| +    assert_equals(matrix3d.m33, 11); | 
| +    assert_equals(matrix3d.m34, 12); | 
| +    assert_equals(matrix3d.m41, 13); | 
| +    assert_equals(matrix3d.m42, 14); | 
| +    assert_equals(matrix3d.m43, 15); | 
| +    assert_equals(matrix3d.m44, 16.6); | 
| +}, "DOMMatrixReadOnly fromFloat64Array - 3D matrix"); | 
| + | 
| +test(function() { | 
| var matrix2d = new DOMMatrixReadOnly([1, 2, 3, 3.1, 2, 1]); | 
| assert_true(matrix2d.is2D); | 
| assert_equals(matrix2d.toString(), "matrix(1, 2, 3, 3.1, 2, 1)"); | 
| @@ -58,6 +126,10 @@ test(function() { | 
| "DOMMatrixReadOnly constructor only accepts 1 number sequence"); | 
| assert_throws(new TypeError(), function() { new DOMMatrixReadOnly([1, 2, 3]); }, | 
| "DOMMatrixReadOnly constructor only accepts 1 number sequence with 6 or 16 elements."); | 
| +    assert_throws(new TypeError(), function() { DOMMatrixReadOnly.fromFloat32Array(new Float32Array(15)); }, | 
| +            "DOMMatrixReadOnly constructor only accepts 1 number sequence with 6 or 16 elements."); | 
| +    assert_throws(new TypeError(), function() { DOMMatrixReadOnly.fromFloat64Array(new Float64Array(15)); }, | 
| +            "DOMMatrixReadOnly constructor only accepts 1 number sequence with 6 or 16 elements."); | 
| }, "DOMMatrixReadOnly constructor - invalid arguments"); | 
| </script> | 
| </body> | 
|  |