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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/devtools-js/console-clear.js

Issue 2975523002: DevTools: add console test helpers to new test runner & migrate a console test (Closed)
Patch Set: cleanup Created 3 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
Index: third_party/WebKit/LayoutTests/http/tests/inspector/devtools-js/console-clear.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/devtools-js/console-clear.js b/third_party/WebKit/LayoutTests/http/tests/inspector/devtools-js/console-clear.js
deleted file mode 100644
index d132176b2ae3567a9e1fdf8a72e20d1cc7255673..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/devtools-js/console-clear.js
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright 2017 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-(async function() {
- TestRunner.addResult("Tests that console is cleared upon requestClearMessages call.\n");
-
- await TestRunner.loadPanel("console");
- await TestRunner.loadModule("console_test_runner");
-
- function log() {
- // Fill console.
- console.log("one");
- console.log("two");
- console.log("three");
- }
-
- await TestRunner.evaluateInPagePromise(`(${log.toString()})()`);
- TestRunner.addResult("=== Before clear ===");
- ConsoleTestRunner.dumpConsoleMessages();
-
- Console.ConsoleView.clearConsole();
- TestRunner.deprecatedRunAfterPendingDispatches(callback);
- function callback() {
- TestRunner.addResult("=== After clear ===");
- ConsoleTestRunner.dumpConsoleMessages();
- TestRunner.completeTest();
- }
-})();

Powered by Google App Engine
This is Rietveld 408576698