2 testRunner.dumpAsText();
4 var logDiv = document.getElementById('log');
6 logDiv.appendChild(document.createTextNode(s));
7 logDiv.appendChild(document.createElement('br'));
10 function stringForMatrix(m) {
11 return m + " [(" + m.a.toFixed(2) + ', ' + m.c.toFixed(2) + ')(' + m.b.toFixed(2) + ', ' + m.d.toFixed(2) + ')(' + m.e.toFixed(2) + ', ' + m.f.toFixed(2) + ")]";
14 function printCTMs(name) {
15 var element = document.getElementById(name);
16 log(name + " CTM: " + stringForMatrix(element.getCTM()));
17 log(name + " ScreenCTM: " + stringForMatrix(element.getScreenCTM()));