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 src="./resources/bar.js"></script> | 8 <script src="./resources/bar.js"></script> |
9 <script src="./resources/baz.js"></script> | 9 <script src="./resources/baz.js"></script> |
10 <script> | 10 <script> |
11 | 11 |
12 function test() | 12 function test() |
13 { | 13 { |
| 14 InspectorTest.forceUseDefaultMapping(); |
14 var fs = new InspectorTest.TestFileSystem("file:///var/www"); | 15 var fs = new InspectorTest.TestFileSystem("file:///var/www"); |
15 var folder = fs.root.mkdir("inspector").mkdir("persistence").mkdir("resource
s"); | 16 var folder = fs.root.mkdir("inspector").mkdir("persistence").mkdir("resource
s"); |
16 folder.addFile("foo.js", "\n\nwindow.foo = ()=>'foo';"); | 17 folder.addFile("foo.js", "\n\nwindow.foo = ()=>'foo';"); |
17 folder.addFile("bar.js", "window.bar = () => \"bar\";"); | 18 folder.addFile("bar.js", "window.bar = () => \"bar\";"); |
18 folder.addFile("baz.js", "window.baz = () => \"baz\";"); | 19 folder.addFile("baz.js", "window.baz = () => \"baz\";"); |
19 fs.addFileMapping("http://127.0.0.1:8000", "/"); | 20 fs.addFileMapping("http://127.0.0.1:8000", "/"); |
20 fs.reportCreated(function() { }); | 21 fs.reportCreated(function() { }); |
21 | 22 |
22 InspectorTest.runTestSuite([ | 23 InspectorTest.runTestSuite([ |
23 function waitForBindings(next) | 24 function waitForBindings(next) |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 InspectorTest.addResult(" " + text); | 81 InspectorTest.addResult(" " + text); |
81 } | 82 } |
82 } | 83 } |
83 }; | 84 }; |
84 </script> | 85 </script> |
85 </head> | 86 </head> |
86 <body onload="runTest()"> | 87 <body onload="runTest()"> |
87 <p>Verify that tabbed editor doesn't shuffle tabs when bindings are dropped and
then re-added during reload.</p> | 88 <p>Verify that tabbed editor doesn't shuffle tabs when bindings are dropped and
then re-added during reload.</p> |
88 </body> | 89 </body> |
89 </html> | 90 </html> |
OLD | NEW |