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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/console/console-line-and-column.html

Issue 2130203002: [DevTools] Better ExceptionDetails in js_protocol.json (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: a 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-protocol/console/console-line-and-column-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-protocol/console/console-line-and-column.html
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/console/console-line-and-column.html b/third_party/WebKit/LayoutTests/inspector-protocol/console/console-line-and-column.html
new file mode 100644
index 0000000000000000000000000000000000000000..53bef3dc648d18262b4669e4b157e6d9e72f5401
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/console/console-line-and-column.html
@@ -0,0 +1,41 @@
+<html>
+<head>
+<script type="text/javascript" src="../../http/tests/inspector-protocol/inspector-protocol-test.js"></script>
+<script>
+
+function test()
+{
+ InspectorTest.sendCommand("Console.enable", {});
+
+ addConsoleMessagePromise("console.log(239)")
+ .then(dumpMessage)
+ .then(() => addConsoleMessagePromise("var l = console.log;\n l(239)"))
+ .then(dumpMessage)
+ .then(() => InspectorTest.completeTest());
+
+ function addConsoleMessagePromise(expression)
+ {
+ var cb;
+ var p = new Promise((resolver) => cb = resolver);
+ InspectorTest.eventHandler["Console.messageAdded"] = (messageObject) => cb(messageObject);
+ InspectorTest.sendCommand("Runtime.evaluate", { expression: expression });
+ return p;
+ }
+
+ function dumpMessage(messageObject)
+ {
+ var msg = messageObject.params.message;
+ delete msg.executionContextId;
+ delete msg.parameters;
+ delete msg.timestamp;
+ for (var frame of msg.stack.callFrames)
+ frame.scriptId = 0;
+ InspectorTest.logObject(msg);
+ }
+}
+
+</script>
+</head>
+<body onload="runTest()">
+</body>
+</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector-protocol/console/console-line-and-column-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698