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

Unified Diff: LayoutTests/http/tests/inspector-enabled/console-exception-source-url.html

Issue 260513004: DevTools: [Console] fix sourceurl when exception happens before inspector is open (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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 | LayoutTests/http/tests/inspector-enabled/console-exception-source-url-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/inspector-enabled/console-exception-source-url.html
diff --git a/LayoutTests/http/tests/inspector-enabled/console-exception-source-url.html b/LayoutTests/http/tests/inspector-enabled/console-exception-source-url.html
new file mode 100644
index 0000000000000000000000000000000000000000..40875fece6211aac0af6bb605e5d0a69ca2178c4
--- /dev/null
+++ b/LayoutTests/http/tests/inspector-enabled/console-exception-source-url.html
@@ -0,0 +1,37 @@
+<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 foo() { FAIL.FAIL; } \n //# sourceURL=foo2.js";
+ eval(scriptContents);
+ foo();
+}
+
+
+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 exception happens before inspector is open source url is correctly shown in console.</p>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/http/tests/inspector-enabled/console-exception-source-url-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698