| 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 20 matching lines...) Expand all Loading... |
| 31 networkSourceFrame.setSelection(new Common.TextRange(2, 0, 2, 5)
); | 31 networkSourceFrame.setSelection(new Common.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(onFileSystemSourceCode) | 41 .then(code => InspectorTest.showUISourceCodePromise(code)) |
| 42 .then(onFileSystemTab); | 42 .then(onFileSystemTab); |
| 43 | 43 |
| 44 function onFileSystemSourceCode(code) | |
| 45 { | |
| 46 code.setWorkingCopy("\n\nwindow.foo = ()=>'foo2';"); | |
| 47 return InspectorTest.showUISourceCodePromise(code); | |
| 48 } | |
| 49 | |
| 50 function onFileSystemTab(sourceFrame) | 44 function onFileSystemTab(sourceFrame) |
| 51 { | 45 { |
| 52 fileSystemSourceFrame = sourceFrame; | 46 fileSystemSourceFrame = sourceFrame; |
| 53 dumpSourceFrame(fileSystemSourceFrame); | 47 dumpSourceFrame(fileSystemSourceFrame); |
| 54 dumpEditorTabs(); | 48 dumpEditorTabs(); |
| 55 next(); | 49 next(); |
| 56 } | 50 } |
| 57 }, | 51 }, |
| 58 | 52 |
| 59 function addFileMapping(next) | 53 function addFileMapping(next) |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 { | 95 { |
| 102 InspectorTest.addResult("SourceFrame: " + sourceFrame._url); | 96 InspectorTest.addResult("SourceFrame: " + sourceFrame._url); |
| 103 InspectorTest.addResult(" selection: " + sourceFrame.selection()); | 97 InspectorTest.addResult(" selection: " + sourceFrame.selection()); |
| 104 InspectorTest.addResult(" firstVisibleLine: " + sourceFrame.textEdito
r.firstVisibleLine()); | 98 InspectorTest.addResult(" firstVisibleLine: " + sourceFrame.textEdito
r.firstVisibleLine()); |
| 105 InspectorTest.addResult(" isDirty: " + sourceFrame.uiSourceCode().isD
irty()); | 99 InspectorTest.addResult(" isDirty: " + sourceFrame.uiSourceCode().isD
irty()); |
| 106 } | 100 } |
| 107 }; | 101 }; |
| 108 </script> | 102 </script> |
| 109 </head> | 103 </head> |
| 110 <body onload="runTest()"> | 104 <body onload="runTest()"> |
| 111 <p>Verify that tabs get merged and split when binding is added and removed.</p> | 105 <p>Verify that tabs get merged when binding is added and removed.</p> |
| 112 </body> | 106 </body> |
| 113 </html> | 107 </html> |
| OLD | NEW |