| 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="./persistence-test.js"></script> | 5 <script src="./persistence-test.js"></script> |
| 6 <script src="./automapping-test.js"></script> | 6 <script src="./automapping-test.js"></script> |
| 7 <script> | 7 <script> |
| 8 | 8 |
| 9 function test() | 9 function test() |
| 10 { | 10 { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 { | 21 { |
| 22 InspectorTest.runTestSuite(tests); | 22 InspectorTest.runTestSuite(tests); |
| 23 } | 23 } |
| 24 | 24 |
| 25 var tests = [ | 25 var tests = [ |
| 26 function addNetworkResource(next) | 26 function addNetworkResource(next) |
| 27 { | 27 { |
| 28 automappingTest.addNetworkResources({ | 28 automappingTest.addNetworkResources({ |
| 29 "http://example.com/path/foo.js": foo_js, | 29 "http://example.com/path/foo.js": foo_js, |
| 30 }); | 30 }); |
| 31 automappingTest.waitUntilMappingIsStabilized(next); | 31 automappingTest.waitUntilMappingIsStabilized().then(next); |
| 32 }, | 32 }, |
| 33 | 33 |
| 34 function addFileSystemUISourceCode(next) | 34 function addFileSystemUISourceCode(next) |
| 35 { | 35 { |
| 36 InspectorTest.addFiles(fs, { | 36 InspectorTest.addFiles(fs, { |
| 37 "scripts/foo.js": foo_js, | 37 "scripts/foo.js": foo_js, |
| 38 }); | 38 }); |
| 39 automappingTest.waitUntilMappingIsStabilized(next); | 39 automappingTest.waitUntilMappingIsStabilized().then(next); |
| 40 }, | 40 }, |
| 41 | 41 |
| 42 function removeNetworkUISourceCode(next) | 42 function removeNetworkUISourceCode(next) |
| 43 { | 43 { |
| 44 automappingTest.removeResources(["http://example.com/path/foo.js"]); | 44 automappingTest.removeResources(["http://example.com/path/foo.js"]); |
| 45 automappingTest.waitUntilMappingIsStabilized(next); | 45 automappingTest.waitUntilMappingIsStabilized().then(next); |
| 46 }, | 46 }, |
| 47 | 47 |
| 48 function reAddNetworkUISourceCode(next) | 48 function reAddNetworkUISourceCode(next) |
| 49 { | 49 { |
| 50 automappingTest.addNetworkResources({ | 50 automappingTest.addNetworkResources({ |
| 51 // Make sure simple resource gets mapped. | 51 // Make sure simple resource gets mapped. |
| 52 "http://example.com/path/foo.js": foo_js, | 52 "http://example.com/path/foo.js": foo_js, |
| 53 }); | 53 }); |
| 54 automappingTest.waitUntilMappingIsStabilized(next); | 54 automappingTest.waitUntilMappingIsStabilized().then(next); |
| 55 }, | 55 }, |
| 56 | 56 |
| 57 function removeFileSystem(next) | 57 function removeFileSystem(next) |
| 58 { | 58 { |
| 59 fs.reportRemoved(); | 59 fs.reportRemoved(); |
| 60 automappingTest.waitUntilMappingIsStabilized(next); | 60 automappingTest.waitUntilMappingIsStabilized().then(next); |
| 61 }, | 61 }, |
| 62 ]; | 62 ]; |
| 63 } | 63 } |
| 64 </script> | 64 </script> |
| 65 </head> | 65 </head> |
| 66 <body onload="runTest()"> | 66 <body onload="runTest()"> |
| 67 <p>Verify that automapping works property when UISourceCodes come and go.</p> | 67 <p>Verify that automapping works property when UISourceCodes come and go.</p> |
| 68 </body> | 68 </body> |
| 69 </html> | 69 </html> |
| OLD | NEW |