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

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

Issue 2435043003: DevTools: restore selection and scrollposition between network and filesystem (Closed)
Patch Set: add testcase 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_PersistenceTest = function() { 1 var initialize_PersistenceTest = function() {
2 2
3 InspectorTest.preloadModule("persistence"); 3 InspectorTest.preloadModule("persistence");
4 InspectorTest.preloadModule("sources"); 4 InspectorTest.preloadModule("sources");
5 5
6 WebInspector.PersistenceBinding.prototype.toString = function() 6 WebInspector.PersistenceBinding.prototype.toString = function()
7 { 7 {
8 var lines = [ 8 var lines = [
9 "{", 9 "{",
10 " network: " + this.network.url(), 10 " network: " + this.network.url(),
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 } 61 }
62 62
63 function filterCode(uiSourceCode) 63 function filterCode(uiSourceCode)
64 { 64 {
65 return uiSourceCode.name() === name && uiSourceCode.project().type() === projectType; 65 return uiSourceCode.name() === name && uiSourceCode.project().type() === projectType;
66 } 66 }
67 } 67 }
68 68
69 InspectorTest.addFooJSFile = function(fs) 69 InspectorTest.addFooJSFile = function(fs)
70 { 70 {
71 return fs.root.mkdir("inspector").mkdir("persistence").mkdir("resources").ad dFile("foo.js", "window.foo = ()=>'foo';"); 71 return fs.root.mkdir("inspector").mkdir("persistence").mkdir("resources").ad dFile("foo.js", "\n\nwindow.foo = ()=>'foo';");
72 } 72 }
73 73
74 } 74 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698