| 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>
|
|
|