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

Unified Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/async-call-stack-url.html

Issue 2153893002: [DevTools] Fix line and column in CallstackSidebarPane for async frames (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/async-call-stack-url-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/async-call-stack-url.html
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/async-call-stack-url.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/async-call-stack-url.html
new file mode 100644
index 0000000000000000000000000000000000000000..41acf2801f648f25639a8cea489b3fb286c281bc
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/async-call-stack-url.html
@@ -0,0 +1,45 @@
+<html>
+<head>
+<script src="../../../http/tests/inspector/inspector-test.js"></script>
+<script src="../../../http/tests/inspector/debugger-test.js"></script>
+<script>
+
+function testFunction()
+{
+ setTimeout(functionFoo, 0);
+}
+
+function functionFoo()
+{
+ debugger;
+}
+
+var test = function()
+{
+ InspectorTest.DebuggerAgent.setAsyncCallStackDepth(200, step1);
+
+ function step1()
+ {
+ InspectorTest.startDebuggerTest(step2);
+ }
+
+ function step2()
+ {
+ InspectorTest.runTestFunctionAndWaitUntilPaused(step3);
+ }
+
+ function step3()
+ {
+ var callFrameList = WebInspector.panels.sources.sidebarPanes.callstack.callFrameList;
+ for (var item of callFrameList._items)
+ InspectorTest.addResult(item.element.textContent.replace(/VM\d+/g, "VM"));
+ InspectorTest.completeDebuggerTest();
+ }
+}
+
+</script>
+</head>
+<body onload="runTest()">
+<p>Tests that call stack sidebar contains correct urls for call frames.</p>
+</body>
+</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/async-call-stack-url-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698