| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../http/tests/inspector/inspector-test.js"></script> |
| 4 <script> | 4 <script> |
| 5 | 5 |
| 6 function test() | 6 function test() |
| 7 { | 7 { |
| 8 function findLoadedModule() | 8 function findLoadedModule() |
| 9 { | 9 { |
| 10 var modules = self.runtime._modules; | 10 var modules = self.runtime._modules; |
| 11 for (var module of modules) { | 11 for (var module of modules) { |
| 12 if (module._loaded) | 12 if (module._loadedForTest) |
| 13 return module; | 13 return module; |
| 14 } | 14 } |
| 15 | 15 |
| 16 InspectorTest.addResult("Fail: not a single module loaded"); | 16 InspectorTest.addResult("Fail: not a single module loaded"); |
| 17 InspectorTest.completeTest(); | 17 InspectorTest.completeTest(); |
| 18 } | 18 } |
| 19 | 19 |
| 20 InspectorTest.runTestSuite([ | 20 InspectorTest.runTestSuite([ |
| 21 function substituteURL(next) | 21 function substituteURL(next) |
| 22 { | 22 { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 45 </script> | 45 </script> |
| 46 </head> | 46 </head> |
| 47 | 47 |
| 48 <body onload="runTest()"> | 48 <body onload="runTest()"> |
| 49 <p> | 49 <p> |
| 50 This test checks various Runtime functions. | 50 This test checks various Runtime functions. |
| 51 </p> | 51 </p> |
| 52 | 52 |
| 53 </body> | 53 </body> |
| 54 </html> | 54 </html> |
| OLD | NEW |