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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-merge-editor-tabs.html

Issue 2769843003: DevTools: split text_utils out of common module (Closed)
Patch Set: rebaseline Created 3 years, 9 months 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 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../inspector-test.js"></script> 3 <script src="../inspector-test.js"></script>
4 <script src="../debugger-test.js"></script> 4 <script src="../debugger-test.js"></script>
5 <script src="../isolated-filesystem-test.js"></script> 5 <script src="../isolated-filesystem-test.js"></script>
6 <script src="./persistence-test.js"></script> 6 <script src="./persistence-test.js"></script>
7 <script src="./resources/foo.js"></script> 7 <script src="./resources/foo.js"></script>
8 <script> 8 <script>
9 9
10 function test() 10 function test()
(...skipping 10 matching lines...) Expand all
21 21
22 function openNetworkTab(next) 22 function openNetworkTab(next)
23 { 23 {
24 InspectorTest.waitForUISourceCode("foo.js", Workspace.projectTypes.N etwork) 24 InspectorTest.waitForUISourceCode("foo.js", Workspace.projectTypes.N etwork)
25 .then(code => InspectorTest.showUISourceCodePromise(code)) 25 .then(code => InspectorTest.showUISourceCodePromise(code))
26 .then(onNetworkTab); 26 .then(onNetworkTab);
27 27
28 function onNetworkTab(sourceFrame) 28 function onNetworkTab(sourceFrame)
29 { 29 {
30 networkSourceFrame = sourceFrame; 30 networkSourceFrame = sourceFrame;
31 networkSourceFrame.setSelection(new Common.TextRange(2, 0, 2, 5) ); 31 networkSourceFrame.setSelection(new TextUtils.TextRange(2, 0, 2, 5));
32 networkSourceFrame.scrollToLine(2); 32 networkSourceFrame.scrollToLine(2);
33 dumpSourceFrame(networkSourceFrame); 33 dumpSourceFrame(networkSourceFrame);
34 next(); 34 next();
35 } 35 }
36 }, 36 },
37 37
38 function openFileSystemTab(next) 38 function openFileSystemTab(next)
39 { 39 {
40 InspectorTest.waitForUISourceCode("foo.js", Workspace.projectTypes.F ileSystem) 40 InspectorTest.waitForUISourceCode("foo.js", Workspace.projectTypes.F ileSystem)
41 .then(code => InspectorTest.showUISourceCodePromise(code)) 41 .then(code => InspectorTest.showUISourceCodePromise(code))
42 .then(onFileSystemTab); 42 .then(onFileSystemTab);
43 43
44 function onFileSystemTab(sourceFrame) 44 function onFileSystemTab(sourceFrame)
45 { 45 {
46 fileSystemSourceFrame = sourceFrame; 46 fileSystemSourceFrame = sourceFrame;
47 fileSystemSourceFrame.setSelection(new Common.TextRange(1, 0, 2, 5)); 47 fileSystemSourceFrame.setSelection(new TextUtils.TextRange(1, 0, 2, 5));
48 fileSystemSourceFrame.scrollToLine(1); 48 fileSystemSourceFrame.scrollToLine(1);
49 dumpSourceFrame(fileSystemSourceFrame); 49 dumpSourceFrame(fileSystemSourceFrame);
50 dumpEditorTabs(); 50 dumpEditorTabs();
51 next(); 51 next();
52 } 52 }
53 }, 53 },
54 54
55 function addFileMapping(next) 55 function addFileMapping(next)
56 { 56 {
57 InspectorTest.waitForBinding("foo.js").then(onBindingCreated); 57 InspectorTest.waitForBinding("foo.js").then(onBindingCreated);
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 InspectorTest.addResult(" firstVisibleLine: " + sourceFrame.textEdito r.firstVisibleLine()); 100 InspectorTest.addResult(" firstVisibleLine: " + sourceFrame.textEdito r.firstVisibleLine());
101 InspectorTest.addResult(" isDirty: " + sourceFrame.uiSourceCode().isD irty()); 101 InspectorTest.addResult(" isDirty: " + sourceFrame.uiSourceCode().isD irty());
102 } 102 }
103 }; 103 };
104 </script> 104 </script>
105 </head> 105 </head>
106 <body onload="runTest()"> 106 <body onload="runTest()">
107 <p>Verify that tabs get merged when binding is added and removed.</p> 107 <p>Verify that tabs get merged when binding is added and removed.</p>
108 </body> 108 </body>
109 </html> 109 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698