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

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

Issue 2551403002: [DevTools] ElementsBreadcrumbs Perf Improvements & Cleanup (Closed)
Patch Set: address more feedback Created 4 years 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/elements/shadow/breadcrumb-shadow-roots.html » ('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";
11 } 11 }
12 12
13 function deleteClass() 13 function deleteClass()
14 { 14 {
15 document.getElementsByClassName("anotherClass")[0].className = ""; 15 document.getElementsByClassName("anotherClass")[0].className = "";
16 } 16 }
17 17
18 function test() 18 function test()
19 { 19 {
20 InspectorTest.expandElementsTree(step0); 20 InspectorTest.expandElementsTree(step0);
21 21
22 function step0() 22 function step0()
23 { 23 {
24 InspectorTest.selectNodeWithId("target", step1); 24 InspectorTest.addSniffer(Elements.ElementsBreadcrumbs.prototype, "update ", step1);
25 InspectorTest.selectNodeWithId("target");
25 } 26 }
26 27
27 function step1() 28 function step1()
28 { 29 {
29 InspectorTest.dumpBreadcrumb("Original breadcrumb"); 30 InspectorTest.dumpBreadcrumb("Original breadcrumb");
30 InspectorTest.addSniffer(Elements.ElementsBreadcrumbs.prototype, "update ", step2); 31 InspectorTest.addSniffer(Elements.ElementsBreadcrumbs.prototype, "update ", step2);
31 InspectorTest.evaluateInPage("changeClass()"); 32 InspectorTest.evaluateInPage("changeClass()");
32 } 33 }
33 34
34 function step2() 35 function step2()
(...skipping 17 matching lines...) Expand all
52 <p> 53 <p>
53 Tests that breadcrumbs are updated upon involved element's attribute changes in the Elements panel. 54 Tests that breadcrumbs are updated upon involved element's attribute changes in the Elements panel.
54 </p> 55 </p>
55 56
56 <div class="firstClass"> 57 <div class="firstClass">
57 <div id="target"></div> 58 <div id="target"></div>
58 </div> 59 </div>
59 60
60 </body> 61 </body>
61 </html> 62 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/elements/shadow/breadcrumb-shadow-roots.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698