| 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", testEmulateKeypress); | 9 InspectorTest.selectNodeAndWaitForStyles("inspected", testEmulateKeypress); |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 InspectorTest.waitForStyleApplied(onStyleApplied); | 24 InspectorTest.waitForStyleApplied(onStyleApplied); |
| 25 } | 25 } |
| 26 | 26 |
| 27 function onStyleApplied() | 27 function onStyleApplied() |
| 28 { | 28 { |
| 29 InspectorTest.nodeWithId("inspected", onNodeFound); | 29 InspectorTest.nodeWithId("inspected", onNodeFound); |
| 30 } | 30 } |
| 31 | 31 |
| 32 function onNodeFound(node) | 32 function onNodeFound(node) |
| 33 { | 33 { |
| 34 WebInspector.cssModel.getInlineStylesAsync(node.id, onInlineStyle); | 34 InspectorTest.cssModel.getInlineStylesAsync(node.id, onInlineStyle); |
| 35 } | 35 } |
| 36 | 36 |
| 37 function onInlineStyle(inlineStyle) | 37 function onInlineStyle(inlineStyle) |
| 38 { | 38 { |
| 39 if (!inlineStyle) { | 39 if (!inlineStyle) { |
| 40 InspectorTest.addResult("Failed to get inline styles."). | 40 InspectorTest.addResult("Failed to get inline styles."). |
| 41 InspectorTest.completeTest(); | 41 InspectorTest.completeTest(); |
| 42 return; | 42 return; |
| 43 } | 43 } |
| 44 InspectorTest.addResult("font-size: " + inlineStyle.getPropertyValue("fo
nt-size")); | 44 InspectorTest.addResult("font-size: " + inlineStyle.getPropertyValue("fo
nt-size")); |
| 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 Verifies that property value editing triggers style update in rendering engine. | 54 Verifies that property value editing triggers style update in rendering engine. |
| 55 </p> | 55 </p> |
| 56 | 56 |
| 57 <div id="inspected" style="font-size: 19px"></div> | 57 <div id="inspected" style="font-size: 19px"></div> |
| 58 | 58 |
| 59 </body> | 59 </body> |
| 60 </html> | 60 </html> |
| OLD | NEW |