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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/persistence/automapping-test.js

Issue 2515583002: DevTools: move FileSystemWorkspaceBinding under persistence/ (Closed)
Patch Set: rebaseline 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 unified diff | Download patch
OLDNEW
1 var initialize_AutomappingTest = function() { 1 var initialize_AutomappingTest = function() {
2 2
3 InspectorTest.addFiles = function(testFileSystem, files) 3 InspectorTest.addFiles = function(testFileSystem, files)
4 { 4 {
5 for (var filePath in files) { 5 for (var filePath in files) {
6 var file = files[filePath]; 6 var file = files[filePath];
7 testFileSystem.addFile(filePath, file.content, file.time ? file.time.get Time() : 0); 7 testFileSystem.addFile(filePath, file.content, file.time ? file.time.get Time() : 0);
8 } 8 }
9 } 9 }
10 10
(...skipping 22 matching lines...) Expand all
33 return null; 33 return null;
34 return new Workspace.UISourceCodeMetadata(timeOverride, metadata ? metad ata.contentSize : null); 34 return new Workspace.UISourceCodeMetadata(timeOverride, metadata ? metad ata.contentSize : null);
35 } 35 }
36 } 36 }
37 37
38 InspectorTest.AutomappingTest = function(workspace) 38 InspectorTest.AutomappingTest = function(workspace)
39 { 39 {
40 this._workspace = workspace; 40 this._workspace = workspace;
41 this._networkProject = new Bindings.ContentProviderBasedProject(this._worksp ace, "AUTOMAPPING", Workspace.projectTypes.Network, "simple website"); 41 this._networkProject = new Bindings.ContentProviderBasedProject(this._worksp ace, "AUTOMAPPING", Workspace.projectTypes.Network, "simple website");
42 if (workspace !== Workspace.workspace) 42 if (workspace !== Workspace.workspace)
43 new Bindings.FileSystemWorkspaceBinding(Workspace.isolatedFileSystemMana ger, this._workspace); 43 new Persistence.FileSystemWorkspaceBinding(Workspace.isolatedFileSystemM anager, this._workspace);
44 this._failedBindingsCount = 0; 44 this._failedBindingsCount = 0;
45 this._automapping = new Persistence.Automapping(this._workspace, this._onBin dingAdded.bind(this), this._onBindingRemoved.bind(this)); 45 this._automapping = new Persistence.Automapping(this._workspace, this._onBin dingAdded.bind(this), this._onBindingRemoved.bind(this));
46 InspectorTest.addSniffer(this._automapping, "_onBindingFailedForTest", this. _onBindingFailed.bind(this), true); 46 InspectorTest.addSniffer(this._automapping, "_onBindingFailedForTest", this. _onBindingFailed.bind(this), true);
47 InspectorTest.addSniffer(this._automapping, "_onSweepHappenedForTest", this. _onSweepHappened.bind(this), true); 47 InspectorTest.addSniffer(this._automapping, "_onSweepHappenedForTest", this. _onSweepHappened.bind(this), true);
48 } 48 }
49 49
50 InspectorTest.AutomappingTest.prototype = { 50 InspectorTest.AutomappingTest.prototype = {
51 removeResources: function(urls) 51 removeResources: function(urls)
52 { 52 {
53 for (var url of urls) 53 for (var url of urls)
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 if (stabilized) { 105 if (stabilized) {
106 InspectorTest.addResult("Mapping has stabilized."); 106 InspectorTest.addResult("Mapping has stabilized.");
107 var callback = this._stabilizedCallback; 107 var callback = this._stabilizedCallback;
108 delete this._stabilizedCallback; 108 delete this._stabilizedCallback;
109 callback.call(null); 109 callback.call(null);
110 } 110 }
111 } 111 }
112 } 112 }
113 113
114 } 114 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698