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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/console-show-all-messages.html

Issue 2897033005: DevTools: introduce setting to filter only user messages from console API (Closed)
Patch Set: ac Created 3 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/inspector/console-show-all-messages.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/console-show-all-messages.html b/third_party/WebKit/LayoutTests/http/tests/inspector/console-show-all-messages.html
index c6364e9419b3f0a03e843d28f1f6ffe06a28f686..89913dc49b073f604ea78cecba2ef3628548c1f0 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/console-show-all-messages.html
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/console-show-all-messages.html
@@ -7,7 +7,7 @@ console.log("message from page!");
function test()
{
- var checkbox = Console.ConsoleView.instance()._filter._filterByExecutionContextCheckbox.inputElement;
+ var filterByExecutionContextSetting = Console.ConsoleView.instance()._filter._filterByExecutionContextSetting;
//we can't use usual InspectorTest.dumpConsoleMessages(), because it dumps url of message and it flakes in case of iframe
function dumpVisibleConsoleMessageText()
@@ -22,7 +22,7 @@ function test()
function testInitialState(next)
{
- if (checkbox.checked)
+ if (filterByExecutionContextSetting.get())
InspectorTest.addResult("\"Show target messages\" checkbox should be unchecked by default");
dumpVisibleConsoleMessageText();
next();
@@ -31,7 +31,7 @@ function test()
function testPageOnlyMessages(next)
{
InspectorTest.changeExecutionContext("top");
- checkbox.click();
+ filterByExecutionContextSetting.set(true);
dumpVisibleConsoleMessageText();
next();
},
@@ -45,7 +45,7 @@ function test()
function testAllMessagesWithFrameContext(next)
{
- checkbox.click();
+ filterByExecutionContextSetting.set(false);
dumpVisibleConsoleMessageText();
next();
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698