2 testRunner.dumpAsText();
6 var results = document.getElementById('results');
7 results.innerHTML += s + '<br>';
12 for (var i = 0; i < hitTestData.length; ++i) {
13 var test = hitTestData[i];
14 var hit = document.elementFromPoint(test.point[0], test.point[1]);
15 if (hit.id == test.target)
16 log('Element at ' + test.point[0] + ', ' + test.point[1] + ' has id \"' + hit.id + '\": PASS');
18 log('Element at ' + test.point[0] + ', ' + test.point[1] + ' is ' + hit.id + ': FAIL');