| 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="../isolated-filesystem-test.js"></script> | 4 <script src="../isolated-filesystem-test.js"></script> |
| 5 <script src="../debugger-test.js"></script> | 5 <script src="../debugger-test.js"></script> |
| 6 <script src="./persistence-test.js"></script> | 6 <script src="./persistence-test.js"></script> |
| 7 <script src="./automapping-test.js"></script> | 7 <script src="./automapping-test.js"></script> |
| 8 <link href="./resources/s.css" rel="stylesheet"> | 8 <link href="./resources/s.css" rel="stylesheet"> |
| 9 <script> | 9 <script> |
| 10 | 10 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 content: contents[1], | 32 content: contents[1], |
| 33 time: new Date("December 1, 1989") | 33 time: new Date("December 1, 1989") |
| 34 } | 34 } |
| 35 }); | 35 }); |
| 36 fs.reportCreated(onFileSystemCreated); | 36 fs.reportCreated(onFileSystemCreated); |
| 37 } | 37 } |
| 38 | 38 |
| 39 function onFileSystemCreated() | 39 function onFileSystemCreated() |
| 40 { | 40 { |
| 41 var automappingTest = new InspectorTest.AutomappingTest(Workspace.worksp
ace); | 41 var automappingTest = new InspectorTest.AutomappingTest(Workspace.worksp
ace); |
| 42 automappingTest.waitUntilMappingIsStabilized(InspectorTest.completeTest.
bind(InspectorTest)); | 42 automappingTest.waitUntilMappingIsStabilized().then(InspectorTest.comple
teTest.bind(InspectorTest)); |
| 43 } | 43 } |
| 44 | 44 |
| 45 function getResourceContent(name) | 45 function getResourceContent(name) |
| 46 { | 46 { |
| 47 var fulfill; | 47 var fulfill; |
| 48 var promise = new Promise(x => fulfill = x); | 48 var promise = new Promise(x => fulfill = x); |
| 49 InspectorTest.waitForScriptSource(name, onSource); | 49 InspectorTest.waitForScriptSource(name, onSource); |
| 50 return promise; | 50 return promise; |
| 51 | 51 |
| 52 function onSource(uiSourceCode) | 52 function onSource(uiSourceCode) |
| 53 { | 53 { |
| 54 uiSourceCode.requestContent().then(content => fulfill(content)); | 54 uiSourceCode.requestContent().then(content => fulfill(content)); |
| 55 } | 55 } |
| 56 } | 56 } |
| 57 } | 57 } |
| 58 </script> | 58 </script> |
| 59 </head> | 59 </head> |
| 60 <body onload="runTest()"> | 60 <body onload="runTest()"> |
| 61 <p>Verify that sourcemap sources are mapped with non-exact match.</p> | 61 <p>Verify that sourcemap sources are mapped with non-exact match.</p> |
| 62 </body> | 62 </body> |
| 63 </html> | 63 </html> |
| OLD | NEW |