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

Unified Diff: third_party/WebKit/Source/devtools/tests/console/console-clear-function.html

Issue 2772553002: DevTools: copy console tests to /Source/devtools/tests/ (Closed)
Patch Set: w/ docs & moves Created 3 years, 9 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/Source/devtools/tests/console/console-clear-function.html
diff --git a/third_party/WebKit/Source/devtools/tests/console/console-clear-function.html b/third_party/WebKit/Source/devtools/tests/console/console-clear-function.html
new file mode 100644
index 0000000000000000000000000000000000000000..b3b99d33f5049fcb3e45aa39d295e3540d67cb0e
--- /dev/null
+++ b/third_party/WebKit/Source/devtools/tests/console/console-clear-function.html
@@ -0,0 +1,47 @@
+<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 foo()
+{
+ console.clear();
+}
+
+function test()
+{
+ InspectorTest.addResult("=== Before clear ===");
+ InspectorTest.dumpConsoleMessages();
+
+ InspectorTest.RuntimeAgent.evaluate("foo();", step1);
+
+ function step1()
+ {
+ InspectorTest.addResult("=== After clear ===");
+ InspectorTest.dumpConsoleMessages();
+ InspectorTest.completeTest();
+ };
+}
+
+</script>
+</head>
+
+<body onload="runTest()">
+<p>
+Tests that console is cleared via console.clear() method
+</p>
+<a href="https://bugs.webkit.org/show_bug.cgi?id=101021">Bug 101021 </a>
+
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698