| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 | 3 |
| 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 test() | 8 function test() |
| 9 { | 9 { |
| 10 var formattedStyle; | 10 var formattedStyle; |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 function testFormattedEnableEnd(next) | 99 function testFormattedEnableEnd(next) |
| 100 { | 100 { |
| 101 formattedStyle.allProperties[4].setDisabled(false, dumpFormattedAndC
allNext.bind(null, next)); | 101 formattedStyle.allProperties[4].setDisabled(false, dumpFormattedAndC
allNext.bind(null, next)); |
| 102 }, | 102 }, |
| 103 | 103 |
| 104 function testFormattedEnableMiddle(next) | 104 function testFormattedEnableMiddle(next) |
| 105 { | 105 { |
| 106 formattedStyle.allProperties[3].setDisabled(false, dumpFormattedAndC
allNext.bind(null, next)); | 106 formattedStyle.allProperties[3].setDisabled(false, dumpFormattedAndC
allNext.bind(null, next)); |
| 107 }, | 107 }, |
| 108 | 108 |
| 109 function testFormattedWithMeta(next) |
| 110 { |
| 111 formattedStyle.insertPropertyAt(0, "-webkit-animation", "linear", du
mpFormattedAndCallNext.bind(null, next)); |
| 112 }, |
| 113 |
| 109 function initUnformattedStyle(next) | 114 function initUnformattedStyle(next) |
| 110 { | 115 { |
| 111 function callback(styles) | 116 function callback(styles) |
| 112 { | 117 { |
| 113 if (!styles) { | 118 if (!styles) { |
| 114 InspectorTest.addResult("empty styles"); | 119 InspectorTest.addResult("empty styles"); |
| 115 return; | 120 return; |
| 116 } | 121 } |
| 117 | 122 |
| 118 unformattedStyle = styles.matchedCSSRules[1].style; | 123 unformattedStyle = styles.matchedCSSRules[1].style; |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 </head> | 244 </head> |
| 240 | 245 |
| 241 <body id="mainBody" onload="runTest()"> | 246 <body id="mainBody" onload="runTest()"> |
| 242 <p> | 247 <p> |
| 243 Tests that InspectorCSSAgent formats the CSS style text based on the CSS model m
odifications. | 248 Tests that InspectorCSSAgent formats the CSS style text based on the CSS model m
odifications. |
| 244 </p> | 249 </p> |
| 245 <div id="formatted">Formatted</div> | 250 <div id="formatted">Formatted</div> |
| 246 <div id="unformatted">Unformatted</div> | 251 <div id="unformatted">Unformatted</div> |
| 247 </body> | 252 </body> |
| 248 </html> | 253 </html> |
| OLD | NEW |