| 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"; | 
| 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  Loading... | 
| 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> | 
| OLD | NEW | 
|---|