Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-enabled/sources/debugger/linkifier.html

Issue 2613643002: DevTools: migrate from external Maps to symbols in the bindings objects. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698