| 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>// It is important that script starts on line 5 (zero-based 4) | 5 <script>// It is important that script starts on line 5 (zero-based 4) |
| 6 | 6 |
| 7 function nonFormattedFunction() { var i = 2 + 2; var a = 4; return a + i; } | 7 function nonFormattedFunction() { var i = 2 + 2; var a = 4; return a + i; } |
| 8 | 8 |
| 9 function dummyScript() | 9 function dummyScript() |
| 10 { | 10 { |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 linkifier.reset(); | 82 linkifier.reset(); |
| 83 var count2 = liveLocationsCount(); | 83 var count2 = liveLocationsCount(); |
| 84 | 84 |
| 85 InspectorTest.addResult("listeners removed from raw source code: " + (co
unt1 - count2)); | 85 InspectorTest.addResult("listeners removed from raw source code: " + (co
unt1 - count2)); |
| 86 | 86 |
| 87 InspectorTest.completeDebuggerTest(); | 87 InspectorTest.completeDebuggerTest(); |
| 88 } | 88 } |
| 89 | 89 |
| 90 function liveLocationsCount() | 90 function liveLocationsCount() |
| 91 { | 91 { |
| 92 return Bindings.debuggerWorkspaceBinding._ensureInfoForScript(script)._l
ocations.size; | 92 var scriptInfo = Bindings.debuggerWorkspaceBinding._ensureInfoForScript(
script); |
| 93 return scriptInfo._locations ? scriptInfo._locations.size : 0; |
| 93 } | 94 } |
| 94 } | 95 } |
| 95 | 96 |
| 96 </script> | 97 </script> |
| 97 </head> | 98 </head> |
| 98 | 99 |
| 99 <body onload="onload()"> | 100 <body onload="onload()"> |
| 100 <p> | 101 <p> |
| 101 Tests that Linkifier works correctly. | 102 Tests that Linkifier works correctly. |
| 102 <p> | 103 <p> |
| 103 | 104 |
| 104 </body> | 105 </body> |
| 105 </html> | 106 </html> |
| OLD | NEW |