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 | 6 |
7 function testFunction() | 7 function testFunction() |
8 { | 8 { |
9 debugger; | 9 debugger; |
10 } | 10 } |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 function didResume2() | 48 function didResume2() |
49 { | 49 { |
50 next(); | 50 next(); |
51 } | 51 } |
52 }, | 52 }, |
53 ]); | 53 ]); |
54 | 54 |
55 function liveLocationsCount() | 55 function liveLocationsCount() |
56 { | 56 { |
57 var count = 0; | 57 var count = 0; |
58 var scripts = WebInspector.debuggerModel.scripts; | 58 var infos = WebInspector.debuggerWorkspaceBinding._targetToData.get(WebI
nspector.debuggerModel.target()).scriptDataMap.values(); |
59 for (var id in scripts) | 59 infos.forEach(function(info) { |
60 count += scripts[id]._locations.size(); | 60 count += info._locations.size(); |
| 61 }); |
61 return count; | 62 return count; |
62 } | 63 } |
63 } | 64 } |
64 | 65 |
65 </script> | 66 </script> |
66 </head> | 67 </head> |
67 | 68 |
68 <body onload="runTest()"> | 69 <body onload="runTest()"> |
69 <p> | 70 <p> |
70 Tests that RawSourceCode listeners count won't grow on each script pause. <a hre
f="https://bugs.webkit.org/show_bug.cgi?id=70996">Bug 70996</a> | 71 Tests that RawSourceCode listeners count won't grow on each script pause. <a hre
f="https://bugs.webkit.org/show_bug.cgi?id=70996">Bug 70996</a> |
71 </p> | 72 </p> |
72 | 73 |
73 </body> | 74 </body> |
74 </html> | 75 </html> |
OLD | NEW |