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

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

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots 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
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 6a2d34935cd77a610f5dce3c533eb90600617d69..6fc770136c7bdefc16680ea7504a1ea5ac77f628 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
@@ -7,18 +7,18 @@
<script>
function test()
{
- WebInspector.settingForTest("showEventListenersForAncestors").set(false);
+ Common.settingForTest("showEventListenersForAncestors").set(false);
var scriptURL = "http://127.0.0.1:8000/inspector/service-workers/resources/service-worker-empty.js";
var scope = "http://127.0.0.1:8000/inspector/service-workers/resources/scope1/";
InspectorTest.waitForServiceWorker(step1);
InspectorTest.registerServiceWorker(scriptURL, scope);
- var objectEventListenersPane = self.runtime.sharedInstance(WebInspector.ObjectEventListenersSidebarPane);
+ var objectEventListenersPane = self.runtime.sharedInstance(Sources.ObjectEventListenersSidebarPane);
function isDedicatedWorker()
{
- var target = WebInspector.context.flavor(WebInspector.ExecutionContext).target();
+ var target = UI.context.flavor(SDK.ExecutionContext).target();
return InspectorTest.isDedicatedWorker(target);
}
@@ -33,7 +33,7 @@ function test()
InspectorTest.selectThread(executionContext.target());
InspectorTest.addResult("Context is dedicated worker: " + isDedicatedWorker());
InspectorTest.addResult("Dumping listeners");
- WebInspector.viewManager.showView("sources.globalListeners").then(() => {
+ UI.viewManager.showView("sources.globalListeners").then(() => {
objectEventListenersPane.update();
InspectorTest.expandAndDumpEventListeners(objectEventListenersPane._eventListenersView, step3);
});
@@ -42,7 +42,7 @@ function test()
function step3()
{
InspectorTest.addResult("Selecting main thread");
- InspectorTest.selectThread(WebInspector.targetManager.mainTarget());
+ InspectorTest.selectThread(SDK.targetManager.mainTarget());
InspectorTest.addResult("Context is dedicated worker: " + isDedicatedWorker());
InspectorTest.addResult("Dumping listeners");
InspectorTest.expandAndDumpEventListeners(objectEventListenersPane._eventListenersView, step4);

Powered by Google App Engine
This is Rietveld 408576698