blob: 46edfae47cb9fa679c8887fe5270ceff07bf6b37 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
<html>
<head>
<script src="../../http/tests/inspector/inspector-test.js"></script>
<script src="../../http/tests/inspector/console-test.js"></script>
<script>
function test()
{
InspectorTest.evaluateInConsole("var x = {a:1}; x.self = x; undefined = x;", step1);
function step1()
{
InspectorTest.evaluateInConsole("unknownVar", step2);
}
function step2()
{
InspectorTest.dumpConsoleMessages();
InspectorTest.completeTest();
}
}
</script>
</head>
<body onload="runTest()">
<p>
Tests that evaluating something in console won't crash the browser if undefined value
is overriden. The test passes if it doesn't crash.
<a href="https://bugs.webkit.org/show_bug.cgi?id=64155">Bug 64155.</a>
</p>
</body>
</html>
|