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

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

Issue 2137773002: [DevTools] Replace the target type with capabilities (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: [DevTools] Replace target type with capabilities Created 4 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/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 2bd44f742c657d229944efb1cf1a74319c04e59d..30aae808a0333031d848be726ec11f30369c1f63 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
@@ -16,6 +16,12 @@ function test()
var objectEventListenersPane = WebInspector.panels.sources.sidebarPanes.objectEventListeners;
+ function isDedicatedWorker()
+ {
+ var target = WebInspector.context.flavor(WebInspector.ExecutionContext).target();
+ return target.hasJSDomains() && !target.hasBrowserDomains() && !target.hasNetworkDomains() && !target.hasWorkerDomains();
+ }
+
function forceUpdate()
{
objectEventListenersPane.expand();
@@ -31,7 +37,7 @@ function test()
{
InspectorTest.addResult("Selecting service worker thread");
InspectorTest.selectThread(executionContext.target());
- InspectorTest.addResult("Context is dedicated worker: " + WebInspector.context.flavor(WebInspector.ExecutionContext).target().isDedicatedWorker());
+ InspectorTest.addResult("Context is dedicated worker: " + isDedicatedWorker());
InspectorTest.addResult("Dumping listeners");
InspectorTest.expandAndDumpEventListeners(objectEventListenersPane._eventListenersView, forceUpdate, step3);
}
@@ -40,7 +46,7 @@ function test()
{
InspectorTest.addResult("Selecting main thread");
InspectorTest.selectThread(WebInspector.targetManager.mainTarget());
- InspectorTest.addResult("Context is dedicated worker: " + WebInspector.context.flavor(WebInspector.ExecutionContext).target().isDedicatedWorker());
+ InspectorTest.addResult("Context is dedicated worker: " + isDedicatedWorker());
InspectorTest.addResult("Dumping listeners");
InspectorTest.expandAndDumpEventListeners(objectEventListenersPane._eventListenersView, forceUpdate, step4);
}
@@ -59,4 +65,4 @@ Tests framework event listeners output in Sources panel when service worker is p
</p>
<button id="inspectedNode">Inspect Me</button>
</body>
-</html>
+</html>

Powered by Google App Engine
This is Rietveld 408576698