Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / elements / breadcrumb-updates.html
blob9ff314524f73a67302d04686bd3d607674049106
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <html>
3 <head>
4 <script src="../../http/tests/inspector/inspector-test.js"></script>
5 <script src="../../http/tests/inspector/elements-test.js"></script>
6 <script>
8 function changeClass()
10 document.getElementsByClassName("firstClass")[0].className = "anotherClass";
13 function deleteClass()
15 document.getElementsByClassName("anotherClass")[0].className = "";
18 function test()
20 InspectorTest.expandElementsTree(step0);
22 function step0()
24 InspectorTest.selectNodeWithId("target", step1);
27 function step1()
29 InspectorTest.dumpBreadcrumb("Original breadcrumb");
30 InspectorTest.addSniffer(WebInspector.ElementsBreadcrumbs.prototype, "update", step2);
31 InspectorTest.evaluateInPage("changeClass()");
34 function step2()
36 InspectorTest.dumpBreadcrumb("After class change");
37 InspectorTest.addSniffer(WebInspector.ElementsBreadcrumbs.prototype, "update", step3);
38 InspectorTest.evaluateInPage("deleteClass()");
41 function step3()
43 InspectorTest.dumpBreadcrumb("After class removal");
44 InspectorTest.completeTest();
48 </script>
49 </head>
51 <body onload="runTest()">
52 <p>
53 Tests that breadcrumbs are updated upon involved element's attribute changes in the Elements panel.
54 </p>
56 <div class="firstClass">
57 <div id="target"></div>
58 </div>
60 </body>
61 </html>