Chromium Code Reviews| Index: LayoutTests/http/tests/inspector-enabled/console-stack-overflow-source-url.html |
| diff --git a/LayoutTests/http/tests/inspector-enabled/console-stack-overflow-source-url.html b/LayoutTests/http/tests/inspector-enabled/console-stack-overflow-source-url.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..15fa2f5518cedc362697a98ceabddfaac90fac75 |
| --- /dev/null |
| +++ b/LayoutTests/http/tests/inspector-enabled/console-stack-overflow-source-url.html |
| @@ -0,0 +1,38 @@ |
| +<html> |
| +<head> |
| +<script src="../inspector/inspector-test.js"></script> |
| +<script src="../inspector/console-test.js"></script> |
| +<script type="text/javascript"> |
| +function onload() |
| +{ |
| + if (window.testRunner) |
| + testRunner.waitUntilDone(); |
| + setTimeout(showInspectorAndRunTest, 0); |
| + |
| + var scriptContents = "function boo(){ \n boo(); \n } \n function foo() { \n boo();} \n //# sourceURL=foo2.js"; |
| + eval(scriptContents); |
| + foo(); |
| + //# sourceURL=outer_src |
|
vsevik
2014/04/30 15:16:59
ditto
kozyatinskiy1
2014/04/30 16:08:04
Done.
|
| +} |
| + |
| + |
| +function showInspectorAndRunTest() |
| +{ |
| + if (window.testRunner) |
| + testRunner.showWebInspector(); |
| + runTest(); |
| +} |
| + |
| +function test() |
| +{ |
| + InspectorTest.expandConsoleMessages(); |
| + InspectorTest.dumpConsoleMessages(); |
| + InspectorTest.addResult("TEST COMPLETE"); |
| + InspectorTest.completeTest(); |
| +} |
| +</script> |
| +</head> |
| +<body onload="onload()"> |
| +<p>Tests that when stack overflow happens before inspector is open source url is correctly shown in console.</p> |
| +</body> |
| +</html> |