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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/elements/event-listeners-framework-with-service-worker.html

Issue 2217783002: DevTools: use view locations in the elements and sources sidebars. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for landing Created 4 years, 4 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/elements/event-listeners-framework-with-service-worker.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/elements/event-listeners-framework-with-service-worker.html b/third_party/WebKit/LayoutTests/http/tests/inspector/elements/event-listeners-framework-with-service-worker.html
index c2863505906369f5cc4a1cc09d6938ea3a72479a..dfd8bf9ce7b81ce9ad109aa6b45ceb4fef3f51ff 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/elements/event-listeners-framework-with-service-worker.html
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/elements/event-listeners-framework-with-service-worker.html
@@ -22,12 +22,6 @@ function test()
return InspectorTest.isDedicatedWorker(target);
}
- function forceUpdate()
- {
- objectEventListenersPane.revealWidget();
- objectEventListenersPane.update();
- }
-
function step1(target)
{
InspectorTest.waitForExecutionContextInTarget(target, step2);
@@ -39,7 +33,10 @@ function test()
InspectorTest.selectThread(executionContext.target());
InspectorTest.addResult("Context is dedicated worker: " + isDedicatedWorker());
InspectorTest.addResult("Dumping listeners");
- InspectorTest.expandAndDumpEventListeners(objectEventListenersPane._eventListenersView, forceUpdate, step3);
+ objectEventListenersPane.revealView().then(() => {
+ objectEventListenersPane.update();
+ InspectorTest.expandAndDumpEventListeners(objectEventListenersPane._eventListenersView, step3);
+ });
}
function step3()
@@ -48,7 +45,7 @@ function test()
InspectorTest.selectThread(WebInspector.targetManager.mainTarget());
InspectorTest.addResult("Context is dedicated worker: " + isDedicatedWorker());
InspectorTest.addResult("Dumping listeners");
- InspectorTest.expandAndDumpEventListeners(objectEventListenersPane._eventListenersView, forceUpdate, step4);
+ InspectorTest.expandAndDumpEventListeners(objectEventListenersPane._eventListenersView, step4);
}
function step4()

Powered by Google App Engine
This is Rietveld 408576698