| 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 src="../../http/tests/inspector/debugger-test.js"></script> | 4 <script src="../../http/tests/inspector/debugger-test.js"></script> |
| 5 <script> | 5 <script> |
| 6 function test() | 6 function test() |
| 7 { | 7 { |
| 8 var script; | 8 var script; |
| 9 | 9 |
| 10 InspectorTest.startDebuggerTest(waitForScripts); | 10 InspectorTest.startDebuggerTest(waitForScripts); |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 | 55 |
| 56 // Ensures urls with lots of slashes does not bog down the regex. | 56 // Ensures urls with lots of slashes does not bog down the regex. |
| 57 Components.linkifyStringAsFragment("/".repeat(1000)); | 57 Components.linkifyStringAsFragment("/".repeat(1000)); |
| 58 Components.linkifyStringAsFragment("/a/".repeat(1000)); | 58 Components.linkifyStringAsFragment("/a/".repeat(1000)); |
| 59 | 59 |
| 60 InspectorTest.completeTest(); | 60 InspectorTest.completeTest(); |
| 61 } | 61 } |
| 62 | 62 |
| 63 function dumpLiveLocationsCount() | 63 function dumpLiveLocationsCount() |
| 64 { | 64 { |
| 65 InspectorTest.addResult("Live locations count: " + Bindings.debuggerWork
spaceBinding._ensureInfoForScript(script)._locations.size); | 65 var scriptInfo = Bindings.debuggerWorkspaceBinding._ensureInfoForScript(
script); |
| 66 InspectorTest.addResult("Live locations count: " + (scriptInfo._location
s ? scriptInfo._locations.size : 0)); |
| 66 InspectorTest.addResult(""); | 67 InspectorTest.addResult(""); |
| 67 } | 68 } |
| 68 } | 69 } |
| 69 | 70 |
| 70 </script> | 71 </script> |
| 71 </head> | 72 </head> |
| 72 | 73 |
| 73 <body onload="runTest()"> | 74 <body onload="runTest()"> |
| 74 <p> | 75 <p> |
| 75 Tests that Linkifier works correctly. | 76 Tests that Linkifier works correctly. |
| 76 <p> | 77 <p> |
| 77 | 78 |
| 78 </body> | 79 </body> |
| 79 </html> | 80 </html> |
| OLD | NEW |