1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <svg xmlns=
"http://www.w3.org/2000/svg">
3 <text x=
"50" y=
"50">Expected: matrix(
1,
0,
0,
1,
0,
0)
</text>
4 <text id=
"log" x=
"50" y=
"80">Actual: TEST FAILED!
</text>
7 function printMatrix (m) {
8 return 'matrix(' + [m.a, m.b, m.c, m.d, m.e, m.f].join(', ') + ')';
11 var matrix = document.documentElement.createSVGMatrix();
12 matrix.translate(
100,
100);
14 document.getElementById(
"log").firstChild.data = 'Actual: ' + printMatrix(matrix);