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

Side by Side Diff: LayoutTests/inspector/elements/styles/updates-throttled.html

Issue 268293003: DevTools: Get rid of WebInspector.panels (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
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> 5 <script>
6 6
7 function test() 7 function test()
8 { 8 {
9 var UPDATE_COUNT = 5; 9 var UPDATE_COUNT = 5;
10 var rebuildCount = 0; 10 var rebuildCount = 0;
11 WebInspector.inspectorView.showPanel("elements"); 11 WebInspector.inspectorView.showPanel("elements");
12 12
13 InspectorTest.selectNodeAndWaitForStyles("inspected", selectCallback); 13 InspectorTest.selectNodeAndWaitForStyles("inspected", selectCallback);
14 function selectCallback() 14 function selectCallback()
15 { 15 {
16 InspectorTest.addSniffer(WebInspector.StylesSidebarPane.prototype, "_inn erRebuildUpdate", sniffRebuild, true); 16 InspectorTest.addSniffer(WebInspector.StylesSidebarPane.prototype, "_inn erRebuildUpdate", sniffRebuild, true);
17 var stylesPane = WebInspector.panels.elements.sidebarPanes.styles; 17 var stylesPane = WebInspector.inspectorView.panel("elements").sidebarPan es.styles;
18 for (var i = 0; i < UPDATE_COUNT; ++i) 18 for (var i = 0; i < UPDATE_COUNT; ++i)
19 stylesPane.update(stylesPane.node, true); 19 stylesPane.update(stylesPane.node, true);
20 20
21 InspectorTest.runAfterPendingDispatches(completeCallback); 21 InspectorTest.runAfterPendingDispatches(completeCallback);
22 } 22 }
23 23
24 function completeCallback() 24 function completeCallback()
25 { 25 {
26 if (rebuildCount >= UPDATE_COUNT) 26 if (rebuildCount >= UPDATE_COUNT)
27 InspectorTest.addResult("ERROR: got " + rebuildCount + " rebuilds fo r " + UPDATE_COUNT + " consecutive updates"); 27 InspectorTest.addResult("ERROR: got " + rebuildCount + " rebuilds fo r " + UPDATE_COUNT + " consecutive updates");
(...skipping 13 matching lines...) Expand all
41 41
42 <body onload="runTest()"> 42 <body onload="runTest()">
43 <p> 43 <p>
44 Tests that Styles sidebar DOM rebuilds are throttled during consecutive updates. <a href="https://bugs.webkit.org/show_bug.cgi?id=78086">Bug 78086</a>. 44 Tests that Styles sidebar DOM rebuilds are throttled during consecutive updates. <a href="https://bugs.webkit.org/show_bug.cgi?id=78086">Bug 78086</a>.
45 </p> 45 </p>
46 46
47 <div id="inspected"></div> 47 <div id="inspected"></div>
48 48
49 </body> 49 </body>
50 </html> 50 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698