Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(127)

Unified Diff: LayoutTests/inspector/console/console-stack-overflow.html

Issue 23717011: DevTools: Use scriptId for resolving stack frames in console messages (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed tests Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/inspector/console/console-stack-overflow.html
diff --git a/LayoutTests/inspector/console/console-stack-overflow.html b/LayoutTests/inspector/console/console-stack-overflow.html
new file mode 100644
index 0000000000000000000000000000000000000000..f8063dc8869cdf338142ec17af9f314d8ef2a0d1
--- /dev/null
+++ b/LayoutTests/inspector/console/console-stack-overflow.html
@@ -0,0 +1,40 @@
+<html>
+<head>
+<script src="../../http/tests/inspector/inspector-test.js"></script>
+<script src="../../http/tests/inspector/console-test.js"></script>
+<script>
+function overflow()
+{
+ overflow();
+}
+
+function doOverflow()
+{
+ setTimeout(overflow, 0);
+}
+
+function test()
+{
+ InspectorTest.evaluateInPage("doOverflow()", step2.bind(this));
+
+ function step2()
+ {
+ if (WebInspector.consoleView._visibleMessagesIndices.length < 1)
+ InspectorTest.addConsoleSniffer(step2);
+ else
+ step3();
+ }
+
+ function step3()
+ {
+ InspectorTest.expandConsoleMessages();
+ InspectorTest.dumpConsoleMessages();
+ InspectorTest.completeTest();
+ }
+}
+</script>
+</head>
+<body onload="runTest()">
+<p>Tests that when stack overflow exception happens when inspector is open the stack trace is correctly shown in console.</p>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698