| OLD | NEW |
| (Empty) | |
| 1 <html> |
| 2 <head> |
| 3 <script src="../inspector-test.js"></script> |
| 4 <script src="../isolated-filesystem-test.js"></script> |
| 5 <script src="../debugger-test.js"></script> |
| 6 <script src="./persistence-test.js"></script> |
| 7 <script src="./automapping-test.js"></script> |
| 8 <link href="./resources/s.css" rel="stylesheet"> |
| 9 <script> |
| 10 |
| 11 function test() |
| 12 { |
| 13 InspectorTest.overrideNetworkModificationTime({ |
| 14 "http://127.0.0.1:8000/inspector/persistence/resources/s.css": null |
| 15 }); |
| 16 |
| 17 Promise.all([ |
| 18 getResourceContent("s.css"), |
| 19 getResourceContent("s.scss") |
| 20 ]).then(onResourceContents); |
| 21 |
| 22 function onResourceContents(contents) |
| 23 { |
| 24 var fs = new InspectorTest.TestFileSystem("file:///var/www"); |
| 25 InspectorTest.addFiles(fs, { |
| 26 "dist/s.css": { |
| 27 content: contents[0], |
| 28 time: new Date("December 1, 1989") |
| 29 }, |
| 30 "src/s.scss": { |
| 31 content: contents[1], |
| 32 time: new Date("December 1, 1989") |
| 33 } |
| 34 }); |
| 35 fs.reportCreated(onFileSystemCreated); |
| 36 } |
| 37 |
| 38 function onFileSystemCreated() |
| 39 { |
| 40 var automappingTest = new InspectorTest.AutomappingTest(WebInspector.wor
kspace); |
| 41 automappingTest.waitUntilMappingIsStabilized(InspectorTest.completeTest.
bind(InspectorTest)); |
| 42 } |
| 43 |
| 44 function getResourceContent(name) |
| 45 { |
| 46 var fulfill; |
| 47 var promise = new Promise(x => fulfill = x); |
| 48 InspectorTest.waitForScriptSource(name, onSource); |
| 49 return promise; |
| 50 |
| 51 function onSource(uiSourceCode) |
| 52 { |
| 53 uiSourceCode.requestContent().then(content => fulfill(content)); |
| 54 } |
| 55 } |
| 56 } |
| 57 </script> |
| 58 </head> |
| 59 <body onload="runTest()"> |
| 60 <p>Verify that sourcemap sources are mapped with non-exact match.</p> |
| 61 </body> |
| 62 </html> |
| OLD | NEW |