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

Unified Diff: third_party/WebKit/LayoutTests/inspector/input-event-warning.html

Issue 2484213003: Convert performance monitor to the subscription model. (Closed)
Patch Set: core export Created 4 years, 1 month 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/core/events/EventTarget.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/inspector/input-event-warning.html
diff --git a/third_party/WebKit/LayoutTests/inspector/input-event-warning.html b/third_party/WebKit/LayoutTests/inspector/input-event-warning.html
index e3936908ac4b8bd934dcd46a0c8cacd8719529ec..2b1c62bd4f0f0eae50fb54e0f4059b6471bcd440 100644
--- a/third_party/WebKit/LayoutTests/inspector/input-event-warning.html
+++ b/third_party/WebKit/LayoutTests/inspector/input-event-warning.html
@@ -42,7 +42,7 @@ function dispatchEvents()
target.addEventListener(type, eventListener1);
target.addEventListener(type, eventListener2);
}
- var deadline = performance.now() + 110;
+ var deadline = performance.now() + 100;
while (performance.now() < deadline) {};
if (window.testRunner)
window.testRunner.setDumpConsoleMessages(false);
@@ -67,13 +67,15 @@ function test()
function step1()
{
- InspectorTest.mainTarget.logAgent().setReportViolationsEnabled(false);
+ InspectorTest.mainTarget.logAgent().startViolationsReport([
+ {name: 'blockedEvent', threshold: 30000}]);
InspectorTest.evaluateInPage("dispatchEvents()", step2);
}
function step2()
{
- InspectorTest.mainTarget.logAgent().setReportViolationsEnabled(true);
+ InspectorTest.mainTarget.logAgent().startViolationsReport([
+ {name: 'blockedEvent', threshold: 0.001}]);
InspectorTest.addResult("There should be no warnings above this line");
InspectorTest.evaluateInPage("dispatchEvents()", () => InspectorTest.completeTest());
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/events/EventTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698