| Index: third_party/WebKit/Source/devtools/tests/console/console-clear.html
|
| diff --git a/third_party/WebKit/Source/devtools/tests/console/console-clear.html b/third_party/WebKit/Source/devtools/tests/console/console-clear.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..138259e60c5f771928325a0dd515af72dda6b1fe
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/devtools/tests/console/console-clear.html
|
| @@ -0,0 +1,42 @@
|
| +<html>
|
| +<head>
|
| +<script src="../../http/tests/inspector/inspector-test.js"></script>
|
| +<script src="../../http/tests/inspector/console-test.js"></script>
|
| +<script>
|
| +
|
| +function log() {
|
| + // Fill console.
|
| + console.log("one");
|
| + console.log("two");
|
| + console.log("three");
|
| +}
|
| +
|
| +log();
|
| +
|
| +function test()
|
| +{
|
| +
|
| + InspectorTest.addResult("=== Before clear ===");
|
| + InspectorTest.dumpConsoleMessages();
|
| +
|
| + Console.ConsoleView.clearConsole();
|
| +
|
| + function callback()
|
| + {
|
| + InspectorTest.addResult("=== After clear ===");
|
| + InspectorTest.dumpConsoleMessages();
|
| + InspectorTest.completeTest();
|
| + }
|
| + InspectorTest.deprecatedRunAfterPendingDispatches(callback);
|
| +}
|
| +
|
| +</script>
|
| +</head>
|
| +
|
| +<body onload="runTest()">
|
| +<p>
|
| +Tests that console is cleared upon requestClearMessages call.
|
| +</p>
|
| +
|
| +</body>
|
| +</html>
|
|
|