1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
4 <script src=
"../../http/tests/inspector/inspector-test.js"></script>
5 <script src=
"../../http/tests/inspector/elements-test.js"></script>
10 document
.getElementsByClassName("firstClass")[0].className
= "anotherClass";
13 function deleteClass()
15 document
.getElementsByClassName("anotherClass")[0].className
= "";
20 InspectorTest
.expandElementsTree(step0
);
24 InspectorTest
.selectNodeWithId("target", step1
);
29 InspectorTest
.dumpBreadcrumb("Original breadcrumb");
30 InspectorTest
.addSniffer(WebInspector
.ElementsBreadcrumbs
.prototype, "update", step2
);
31 InspectorTest
.evaluateInPage("changeClass()");
36 InspectorTest
.dumpBreadcrumb("After class change");
37 InspectorTest
.addSniffer(WebInspector
.ElementsBreadcrumbs
.prototype, "update", step3
);
38 InspectorTest
.evaluateInPage("deleteClass()");
43 InspectorTest
.dumpBreadcrumb("After class removal");
44 InspectorTest
.completeTest();
51 <body onload=
"runTest()">
53 Tests that breadcrumbs are updated upon involved element's attribute changes in the Elements panel.
56 <div class=
"firstClass">
57 <div id=
"target"></div>