Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / console / alert-toString-exception.html
blob9aa055257bda0de86caab824ac9c706cf7b1b920
1 <html>
2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/console-test.js"></script>
5 <script>
6 alert({toString: function() { throw "Exception in toString()."; }});
7 </script>
8 <script>
9 function test()
11 InspectorTest.reloadPage(function() {
12 InspectorTest.dumpConsoleMessages();
13 InspectorTest.completeTest();
14 });
16 </script>
17 </head>
18 <body onload="runTest()">
19 <p>
20 Test that browser won't crash if inspector is opened for a page that fails to convert
21 alert() argument to string. The test passes if it doesn't crash.
22 <a href="https://bugs.webkit.org/show_bug.cgi?id=60541">Bug 60541</a>
23 </p>
24 </body>
25 </html>