Chromium Code Reviews| 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..a730025305e5c4600abe6961b36caf4bb0287455 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/inspector/console/console-export.html |
| @@ -0,0 +1,31 @@ |
| +<html> |
| +<head> |
| +<script src="../../http/tests/inspector/inspector-test.js"></script> |
| +<script src="../../http/tests/inspector/console-test.js"></script> |
| +<script> |
| + |
| +function log() { |
| + console.log("one"); |
| + console.log("www.loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongurl.com"); |
| + console.trace('My important trace'); |
| + console.error('foo'); |
|
dgozman
2017/01/10 01:03:30
Let's have a single message with multiple urls as
luoe
2017/01/10 22:21:44
Done.
|
| +} |
| +log(); |
| + |
| +function test() |
| +{ |
| + InspectorTest.dumpConsoleMessages(); |
| + 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> |