2 if (window.layoutTestController)
3 layoutTestController.dumpAsText();
6 document.getElementById("console").innerHTML += msg + "<br>";
11 window.onerror = function (error, url, line) {
12 url = url ? url.match( /[^\/]+\/?$/ )[0] : url;
13 log("Error caught successfully: " + error + "\nFile: " + url + "\nLine: " + line)
16 unknownObject.unknownProperty++;
19 <body onload="test1();">
20 <p>You should see a message if window.onerror is working properly for this test.<a href="https://bugs.webkit.org/show_bug.cgi?id=8519">Bug 8519</a>.</p>
22 <div id='console'></div>