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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-test.js

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/persistence/persistence-test.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-test.js
index c2d5452e13f0c85a2c3571d3aec5ac026c223eeb..6d8b302e0679d43bbb34fca16a9eb32a4cc2e030 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-test.js
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-test.js
@@ -3,7 +3,7 @@ var initialize_PersistenceTest = function() {
InspectorTest.preloadModule("persistence");
InspectorTest.preloadModule("sources");
-WebInspector.PersistenceBinding.prototype.toString = function()
+Persistence.PersistenceBinding.prototype.toString = function()
{
var lines = [
"{",
@@ -17,9 +17,9 @@ WebInspector.PersistenceBinding.prototype.toString = function()
InspectorTest.waitForBinding = function(fileName)
{
- var uiSourceCodes = WebInspector.workspace.uiSourceCodes();
+ var uiSourceCodes = Workspace.workspace.uiSourceCodes();
for (var uiSourceCode of uiSourceCodes) {
- var binding = WebInspector.persistence.binding(uiSourceCode);
+ var binding = Persistence.persistence.binding(uiSourceCode);
if (!binding)
continue;
if (uiSourceCode.name() === fileName)
@@ -27,7 +27,7 @@ InspectorTest.waitForBinding = function(fileName)
}
var fulfill;
var promise = new Promise(x => fulfill = x);
- WebInspector.persistence.addEventListener(WebInspector.Persistence.Events.BindingCreated, onBindingCreated);
+ Persistence.persistence.addEventListener(Persistence.Persistence.Events.BindingCreated, onBindingCreated);
return promise;
function onBindingCreated(event)
@@ -35,21 +35,21 @@ InspectorTest.waitForBinding = function(fileName)
var binding = event.data;
if (binding.network.name() !== fileName && binding.fileSystem.name() !== fileName)
return;
- WebInspector.persistence.removeEventListener(WebInspector.Persistence.Events.BindingCreated, onBindingCreated);
+ Persistence.persistence.removeEventListener(Persistence.Persistence.Events.BindingCreated, onBindingCreated);
fulfill(binding);
}
}
InspectorTest.waitForUISourceCode = function(name, projectType)
{
- var uiSourceCodes = WebInspector.workspace.uiSourceCodes();
+ var uiSourceCodes = Workspace.workspace.uiSourceCodes();
var uiSourceCode = uiSourceCodes.find(filterCode);
if (uiSourceCode)
return Promise.resolve(uiSourceCode);
var fulfill;
var promise = new Promise(x => fulfill = x);
- WebInspector.workspace.addEventListener(WebInspector.Workspace.Events.UISourceCodeAdded, onUISourceCode);
+ Workspace.workspace.addEventListener(Workspace.Workspace.Events.UISourceCodeAdded, onUISourceCode);
return promise;
function onUISourceCode(event)
@@ -57,7 +57,7 @@ InspectorTest.waitForUISourceCode = function(name, projectType)
var uiSourceCode = event.data;
if (!filterCode(uiSourceCode))
return;
- WebInspector.workspace.removeEventListener(WebInspector.Workspace.Events.UISourceCodeAdded, onUISourceCode);
+ Workspace.workspace.removeEventListener(Workspace.Workspace.Events.UISourceCodeAdded, onUISourceCode);
fulfill(uiSourceCode);
}

Powered by Google App Engine
This is Rietveld 408576698