| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 | 3 |
| 4 <style type="text/css" media="screen"> | 4 <style type="text/css" media="screen"> |
| 5 /* Invalid selector */ | 5 /* Invalid selector */ |
| 6 .navbar-search .search-query:-moz-placeholder { | 6 .navbar-search .search-query:-moz-placeholder { |
| 7 color: #cccccc; | 7 color: #cccccc; |
| 8 } | 8 } |
| 9 | 9 |
| 10 #container { | 10 #container { |
| 11 padding: 15px; | 11 padding: 15px; |
| 12 } | 12 } |
| 13 </style> | 13 </style> |
| 14 | 14 |
| 15 <script src="../../../http/tests/inspector/inspector-test.js"></script> | 15 <script src="../../../http/tests/inspector/inspector-test.js"></script> |
| 16 <script src="../../../http/tests/inspector/elements-test.js"></script> | 16 <script src="../../../http/tests/inspector/elements-test.js"></script> |
| 17 <script> | 17 <script> |
| 18 | 18 |
| 19 function test() | 19 function test() |
| 20 { | 20 { |
| 21 InspectorTest.selectNodeAndWaitForStyles("container", step1); | 21 InspectorTest.selectNodeAndWaitForStyles("container", step1); |
| 22 | 22 |
| 23 function step1() | 23 function step1() |
| 24 { | 24 { |
| 25 InspectorTest.addResult("Initial value"); | 25 InspectorTest.addResult("Initial value"); |
| 26 InspectorTest.dumpSelectedElementStyles(true, false, true); | 26 InspectorTest.dumpSelectedElementStyles(true, false, true); |
| 27 | 27 |
| 28 var treeItem = InspectorTest.getMatchedStylePropertyTreeItem("padding"
); | 28 var treeItem = InspectorTest.getMatchedStylePropertyTreeItem("padding"
); |
| 29 treeItem.applyStyleText("padding: 20px", false); | 29 treeItem.applyStyleText("padding: 20px", false); |
| 30 InspectorTest.waitForStyles("container", step2); | 30 InspectorTest.waitForStyles("container", step2); |
| 31 } | 31 } |
| 32 | 32 |
| 33 function step2() | 33 function step2() |
| 34 { | 34 { |
| 35 InspectorTest.addResult("After changing property"); | 35 InspectorTest.addResult("After changing property"); |
| 36 InspectorTest.dumpSelectedElementStyles(true, false, true); | 36 InspectorTest.dumpSelectedElementStyles(true, false, true); |
| 37 InspectorTest.completeTest(); | 37 InspectorTest.completeTest(); |
| 38 } | 38 } |
| 39 } | 39 } |
| 40 | 40 |
| 41 </script> | 41 </script> |
| 42 </head> | 42 </head> |
| 43 | 43 |
| 44 <body onload="runTest()"> | 44 <body onload="runTest()"> |
| 45 <p> | 45 <p> |
| 46 Tests that proper source lines are reported for the styles after unrecognizer /
invalid selector. | 46 Tests that proper source lines are reported for the styles after unrecognizer /
invalid selector. |
| 47 </p> | 47 </p> |
| 48 | 48 |
| 49 <div id="container"></div> | 49 <div id="container"></div> |
| 50 | 50 |
| 51 </body> | 51 </body> |
| 52 </html> | 52 </html> |
| OLD | NEW |