blob: 36e6a677b484afdf123009538368bf322c435e6b [file] [log] [blame]
oliver6bd1b492007-10-12 12:25:32 +00001<?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>
5
6 <script>
7 function printMatrix (m) {
8 return 'matrix(' + [m.a, m.b, m.c, m.d, m.e, m.f].join(', ') + ')';
9 }
10
11 var matrix = document.documentElement.createSVGMatrix();
12 matrix.translate(100, 100);
13
14 document.getElementById("log").firstChild.data = 'Actual: ' + printMatrix(matrix);
15 </script>
16</svg>