3 <script src="resources/window-onerror.js">
7 <p>Test that error is treated as handled when window.onerror return
8 value is 'true'. <a href="https://bugs.webkit.org/show_bug.cgi?id=67119">Bug 67119</a>.</p>
9 <div id="console"></div>
11 if (window.layoutTestController)
12 layoutTestController.dumpAsText();
15 document.getElementById("console").innerHTML += msg + "<br>";
18 window.onerror = function(msg, url, line)
20 log("Uncaught error should *not* be printed in console when window.onerror returns true.");
21 log("window.onerror invoked.");