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

Unified Diff: third_party/WebKit/LayoutTests/inspector/console/console-export.html

Issue 2571713005: DevTools: untruncate links on console export (Closed)
Patch Set: rebase Created 3 years, 11 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: third_party/WebKit/LayoutTests/inspector/console/console-export.html
diff --git a/third_party/WebKit/LayoutTests/inspector/console/console-export.html b/third_party/WebKit/LayoutTests/inspector/console/console-export.html
new file mode 100644
index 0000000000000000000000000000000000000000..82286419626b61df146fa017ca1d5fde0c7daeb6
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/inspector/console/console-export.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 log() {
+ var nonUrl = "foo";
+ var url = "www.chromium.org";
+ var longNonUrl = "baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaar";
+ var longUrl = "www.loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongurl.com";
+ console.log(nonUrl);
+ console.log(url);
+ console.log(longNonUrl);
+ console.log(longUrl);
+ console.log(url + " " + longUrl + " " + nonUrl + " " + longNonUrl + " " + url + " " + longUrl);
+ console.trace("My important trace");
+ console.error("My error");
+}
+log();
+
+function test()
+{
+ InspectorTest.addResult("\nDumping messages");
+ InspectorTest.dumpConsoleMessages();
+ InspectorTest.addResult("\nDumping export strings");
+ var consoleView = Console.ConsoleView.instance();
+ consoleView._visibleViewMessages.forEach(message => InspectorTest.addResult(message.toExportString()));
+ InspectorTest.completeTest();
+}
+
+</script>
+</head>
+
+<body onload="runTest()">
+<p>
+Tests that exporting console messages produces proper output.
+</p>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698