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

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

Issue 22548006: DevTools: Improve performance of the element breadcrumbs. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fixed the test Created 7 years, 4 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
« no previous file with comments | « no previous file | Source/devtools/front_end/DOMAgent.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.or g/TR/html4/loose.dtd"> 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.or g/TR/html4/loose.dtd">
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../http/tests/inspector/inspector-test.js"></script> 4 <script src="../../http/tests/inspector/inspector-test.js"></script>
5 <script src="../../http/tests/inspector/elements-test.js"></script> 5 <script src="../../http/tests/inspector/elements-test.js"></script>
6 <script> 6 <script>
7 7
8 function changeClass() 8 function changeClass()
9 { 9 {
10 document.getElementsByClassName("firstClass")[0].className = "anotherClass"; 10 document.getElementsByClassName("firstClass")[0].className = "anotherClass";
(...skipping 10 matching lines...) Expand all
21 InspectorTest.expandElementsTree(step0); 21 InspectorTest.expandElementsTree(step0);
22 22
23 function step0() 23 function step0()
24 { 24 {
25 InspectorTest.selectNodeWithId("target", step1); 25 InspectorTest.selectNodeWithId("target", step1);
26 } 26 }
27 27
28 function step1() 28 function step1()
29 { 29 {
30 dumpBreadcrumb("Original breadcrumb"); 30 dumpBreadcrumb("Original breadcrumb");
31 InspectorTest.evaluateInPage("changeClass()", step2); 31 InspectorTest.addSniffer(WebInspector.panels.elements, "updateBreadcrumb ", step2);
32 InspectorTest.evaluateInPage("changeClass()");
32 } 33 }
33 34
34 function step2() 35 function step2()
35 { 36 {
36 dumpBreadcrumb("After class change"); 37 dumpBreadcrumb("After class change");
37 InspectorTest.evaluateInPage("deleteClass()", step3); 38 InspectorTest.addSniffer(WebInspector.panels.elements, "updateBreadcrumb ", step3);
39 InspectorTest.evaluateInPage("deleteClass()");
38 } 40 }
39 41
40 function step3() 42 function step3()
41 { 43 {
42 dumpBreadcrumb("After class removal"); 44 dumpBreadcrumb("After class removal");
43 InspectorTest.completeTest(); 45 InspectorTest.completeTest();
44 } 46 }
45 47
46 function dumpBreadcrumb(message) 48 function dumpBreadcrumb(message)
47 { 49 {
(...skipping 16 matching lines...) Expand all
64 <p> 66 <p>
65 Tests that breadcrumbs are updated upon involved element's attribute changes in the Elements panel. 67 Tests that breadcrumbs are updated upon involved element's attribute changes in the Elements panel.
66 </p> 68 </p>
67 69
68 <div class="firstClass"> 70 <div class="firstClass">
69 <div id="target"></div> 71 <div id="target"></div>
70 </div> 72 </div>
71 73
72 </body> 74 </body>
73 </html> 75 </html>
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/DOMAgent.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698