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

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: Rebase 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/elements/event-listeners-framework-with-service-worker-expected.txt » ('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/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..9b0e1173d9ab404790e8389866953f5074dc060a 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 InspectorTest.isDedicatedWorker(target);
+ }
+
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>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/elements/event-listeners-framework-with-service-worker-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698