blob: 3d4d2dd24043717be4ac51e25e893a3dd4ffd734 [file] [log] [blame]
<html>
<head>
<script src="../../http/tests/inspector/inspector-test.js"></script>
<script src="../../http/tests/inspector/console-test.js"></script>
<script>
function Parent() { }
function Child() { }
Child.prototype = new Parent();
Child.prototype.constructor = Child;
var outer = { inner: function() { } };
console.log(new Parent());
console.log(new Child());
console.log(new outer.inner());
function test()
{
InspectorTest.dumpConsoleMessages();
InspectorTest.completeTest();
}
</script>
</head>
<body onload="runTest()">
<p>
Tests that the name of the function invoked as object constructor will be displayed as its type in the front-end.
<a href="https://bugs.webkit.org/show_bug.cgi?id=50063">Bug 50063.</a>
</p>
</body>
</html>