| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../../http/tests/inspector/inspector-test.js"></script> |
| 4 <script src="../../../http/tests/inspector/elements-test.js"></script> | 4 <script src="../../../http/tests/inspector/elements-test.js"></script> |
| 5 <script> | 5 <script> |
| 6 | 6 |
| 7 function test() | 7 function test() |
| 8 { | 8 { |
| 9 InspectorTest.selectNodeAndWaitForStyles("inspected", step1); | 9 InspectorTest.selectNodeAndWaitForStyles("inspected", step1); |
| 10 InspectorTest.addSniffer(WebInspector.UISourceCode.prototype, "addRevision",
onRevisionAdded); | 10 InspectorTest.addSniffer(Workspace.UISourceCode.prototype, "addRevision", on
RevisionAdded); |
| 11 | 11 |
| 12 var treeElement; | 12 var treeElement; |
| 13 var hasResourceChanged; | 13 var hasResourceChanged; |
| 14 | 14 |
| 15 var revisionAdded = false; | 15 var revisionAdded = false; |
| 16 var testFinished = false; | 16 var testFinished = false; |
| 17 var displayName = ""; | 17 var displayName = ""; |
| 18 | 18 |
| 19 function step1() | 19 function step1() |
| 20 { | 20 { |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 <body onload="runTest()"> | 84 <body onload="runTest()"> |
| 85 <p> | 85 <p> |
| 86 Tests that adding a new rule works after switching nodes. | 86 Tests that adding a new rule works after switching nodes. |
| 87 </p> | 87 </p> |
| 88 | 88 |
| 89 <div id="inspected" style="font-size: 12px">Text</div> | 89 <div id="inspected" style="font-size: 12px">Text</div> |
| 90 <div id="other" style="color:red"></div> | 90 <div id="other" style="color:red"></div> |
| 91 | 91 |
| 92 </body> | 92 </body> |
| 93 </html> | 93 </html> |
| OLD | NEW |