Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / console / console-eval-undefined-override.html
blob8825c25471ac43f20da1a625bd7862eb0061a56e
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 function test()
8 InspectorTest.evaluateInConsole("var x = {a:1}; x.self = x; undefined = x;", step1);
10 function step1()
12 InspectorTest.evaluateInConsole("unknownVar", step2);
14 function step2()
16 InspectorTest.dumpConsoleMessagesIgnoreErrorStackFrames();
17 InspectorTest.completeTest();
21 </script>
22 </head>
23 <body onload="runTest()">
24 <p>
25 Tests that evaluating something in console won't crash the browser if undefined value
26 is overriden. The test passes if it doesn't crash.
27 <a href="https://bugs.webkit.org/show_bug.cgi?id=64155">Bug 64155.</a>
28 </p>
29 </body>
30 </html>