OLD | NEW |
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 26 matching lines...) Expand all Loading... |
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)); |
| 48 fileSystemSourceFrame.scrollToLine(1); |
47 dumpSourceFrame(fileSystemSourceFrame); | 49 dumpSourceFrame(fileSystemSourceFrame); |
48 dumpEditorTabs(); | 50 dumpEditorTabs(); |
49 next(); | 51 next(); |
50 } | 52 } |
51 }, | 53 }, |
52 | 54 |
53 function addFileMapping(next) | 55 function addFileMapping(next) |
54 { | 56 { |
55 InspectorTest.waitForBinding("foo.js").then(onBindingCreated); | 57 InspectorTest.waitForBinding("foo.js").then(onBindingCreated); |
56 Workspace.fileSystemMapping.addFileMapping(fs.fileSystemPath, "http:
//127.0.0.1:8000", "/"); | 58 Workspace.fileSystemMapping.addFileMapping(fs.fileSystemPath, "http:
//127.0.0.1:8000", "/"); |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 InspectorTest.addResult(" firstVisibleLine: " + sourceFrame.textEdito
r.firstVisibleLine()); | 100 InspectorTest.addResult(" firstVisibleLine: " + sourceFrame.textEdito
r.firstVisibleLine()); |
99 InspectorTest.addResult(" isDirty: " + sourceFrame.uiSourceCode().isD
irty()); | 101 InspectorTest.addResult(" isDirty: " + sourceFrame.uiSourceCode().isD
irty()); |
100 } | 102 } |
101 }; | 103 }; |
102 </script> | 104 </script> |
103 </head> | 105 </head> |
104 <body onload="runTest()"> | 106 <body onload="runTest()"> |
105 <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> |
106 </body> | 108 </body> |
107 </html> | 109 </html> |
OLD | NEW |