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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/elements/expand-recursively.html

Issue 1877223003: DevTools: deprecate InspectorTest.runAfterPendingDispatches (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/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 treeOutline = InspectorTest.firstElementsTreeOutline(); 9 var treeOutline = InspectorTest.firstElementsTreeOutline();
10 InspectorTest.findNode(function() { return false; }, firstStep); 10 InspectorTest.findNode(function() { return false; }, firstStep);
11 11
12 function firstStep() 12 function firstStep()
13 { 13 {
14 InspectorTest.addResult("===== Initial state of tree outline =====\n"); 14 InspectorTest.addResult("===== Initial state of tree outline =====\n");
15 dump(); 15 dump();
16 16
17 var topNode = treeOutline.rootElement().childAt(0).childAt(1).childAt(1) ; 17 var topNode = treeOutline.rootElement().childAt(0).childAt(1).childAt(1) ;
18 topNode.expandRecursively(); 18 topNode.expandRecursively();
19 InspectorTest.runAfterPendingDispatches(secondStep); 19 InspectorTest.deprecatedRunAfterPendingDispatches(secondStep);
20 }; 20 };
21 21
22 function secondStep() 22 function secondStep()
23 { 23 {
24 InspectorTest.addResult("\n===== State of tree outline after calling .ex pandRecursively() =====\n"); 24 InspectorTest.addResult("\n===== State of tree outline after calling .ex pandRecursively() =====\n");
25 dump(); 25 dump();
26 26
27 InspectorTest.completeTest(); 27 InspectorTest.completeTest();
28 }; 28 };
29 29
(...skipping 27 matching lines...) Expand all
57 </div> 57 </div>
58 </div> 58 </div>
59 </div> 59 </div>
60 </div> 60 </div>
61 </div> 61 </div>
62 </div> 62 </div>
63 </div> 63 </div>
64 64
65 </body> 65 </body>
66 </html> 66 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698