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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/elements/styles-4/styles-live-locations-leak.html

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 years, 1 month 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/elements-test.js"></script> 4 <script src="../../../http/tests/inspector/elements-test.js"></script>
5 <script src="../styles/styles-test.js"></script> 5 <script src="../styles/styles-test.js"></script>
6 <style> 6 <style>
7 #first { 7 #first {
8 color: blue; 8 color: blue;
9 } 9 }
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 InspectorTest.addResult(String.sprintf("ERROR: LiveLocations cou nt is growing! Expected: %d found: %d", initialLiveLocationsCount, liveLocations Count)); 57 InspectorTest.addResult(String.sprintf("ERROR: LiveLocations cou nt is growing! Expected: %d found: %d", initialLiveLocationsCount, liveLocations Count));
58 else 58 else
59 InspectorTest.addResult("SUCCESS: LiveLocations count do not gro w."); 59 InspectorTest.addResult("SUCCESS: LiveLocations count do not gro w.");
60 next(); 60 next();
61 } 61 }
62 ]); 62 ]);
63 63
64 function countLiveLocations() 64 function countLiveLocations()
65 { 65 {
66 var locationsCount = 0; 66 var locationsCount = 0;
67 var targetInfos = WebInspector.cssWorkspaceBinding._modelToTargetInfo.va luesArray(); 67 var targetInfos = Bindings.cssWorkspaceBinding._modelToTargetInfo.values Array();
68 for (var targetInfo of targetInfos) 68 for (var targetInfo of targetInfos)
69 locationsCount += targetInfo._locations.valuesArray().length; 69 locationsCount += targetInfo._locations.valuesArray().length;
70 return locationsCount; 70 return locationsCount;
71 } 71 }
72 } 72 }
73 73
74 </script> 74 </script>
75 75
76 </head> 76 </head>
77 77
78 <body onload="runTest()"> 78 <body onload="runTest()">
79 79
80 <p> 80 <p>
81 Tests that styles sidebar pane does not leak any LiveLocations. 81 Tests that styles sidebar pane does not leak any LiveLocations.
82 </p> 82 </p>
83 <div id="first">First element to select</div> 83 <div id="first">First element to select</div>
84 <div id="second">Second element to select</div> 84 <div id="second">Second element to select</div>
85 <div id="third">Second element to select</div> 85 <div id="third">Second element to select</div>
86 </body> 86 </body>
87 </html> 87 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698