| OLD | NEW |
| 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 Loading... |
| 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 InspectorTest.dumpBreadcrumb("Original breadcrumb"); | 30 InspectorTest.dumpBreadcrumb("Original breadcrumb"); |
| 31 InspectorTest.addSniffer(WebInspector.panels.elements, "updateBreadcrumb
", step2); | 31 InspectorTest.addSniffer(WebInspector.inspectorView.panel("elements"), "
updateBreadcrumb", step2); |
| 32 InspectorTest.evaluateInPage("changeClass()"); | 32 InspectorTest.evaluateInPage("changeClass()"); |
| 33 } | 33 } |
| 34 | 34 |
| 35 function step2() | 35 function step2() |
| 36 { | 36 { |
| 37 InspectorTest.dumpBreadcrumb("After class change"); | 37 InspectorTest.dumpBreadcrumb("After class change"); |
| 38 InspectorTest.addSniffer(WebInspector.panels.elements, "updateBreadcrumb
", step3); | 38 InspectorTest.addSniffer(WebInspector.inspectorView.panel("elements"), "
updateBreadcrumb", step3); |
| 39 InspectorTest.evaluateInPage("deleteClass()"); | 39 InspectorTest.evaluateInPage("deleteClass()"); |
| 40 } | 40 } |
| 41 | 41 |
| 42 function step3() | 42 function step3() |
| 43 { | 43 { |
| 44 InspectorTest.dumpBreadcrumb("After class removal"); | 44 InspectorTest.dumpBreadcrumb("After class removal"); |
| 45 InspectorTest.completeTest(); | 45 InspectorTest.completeTest(); |
| 46 } | 46 } |
| 47 } | 47 } |
| 48 | 48 |
| 49 </script> | 49 </script> |
| 50 </head> | 50 </head> |
| 51 | 51 |
| 52 <body onload="runTest()"> | 52 <body onload="runTest()"> |
| 53 <p> | 53 <p> |
| 54 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. |
| 55 </p> | 55 </p> |
| 56 | 56 |
| 57 <div class="firstClass"> | 57 <div class="firstClass"> |
| 58 <div id="target"></div> | 58 <div id="target"></div> |
| 59 </div> | 59 </div> |
| 60 | 60 |
| 61 </body> | 61 </body> |
| 62 </html> | 62 </html> |
| OLD | NEW |