| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 | 3 |
| 4 <link rel="stylesheet" href="../styles/resources/keyframes.css"> | 4 <link rel="stylesheet" href="../styles/resources/keyframes.css"> |
| 5 | 5 |
| 6 <script src="../../../http/tests/inspector/inspector-test.js"></script> | 6 <script src="../../../http/tests/inspector/inspector-test.js"></script> |
| 7 <script src="../../../http/tests/inspector/elements-test.js"></script> | 7 <script src="../../../http/tests/inspector/elements-test.js"></script> |
| 8 <style> | 8 <style> |
| 9 @keyframes animName { | 9 @keyframes animName { |
| 10 from, 20% { | 10 from, 20% { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 { | 42 { |
| 43 InspectorTest.CSSAgent.getMatchedStylesForNode(node.id, onCSSAnimations.
bind(null, node.id)); | 43 InspectorTest.CSSAgent.getMatchedStylesForNode(node.id, onCSSAnimations.
bind(null, node.id)); |
| 44 } | 44 } |
| 45 | 45 |
| 46 function onCSSAnimations(nodeId, error, inlinePayload, attributesPayload, ma
tchedPayload, pseudoPayload, inheritedPayload, animationsPayload) | 46 function onCSSAnimations(nodeId, error, inlinePayload, attributesPayload, ma
tchedPayload, pseudoPayload, inheritedPayload, animationsPayload) |
| 47 { | 47 { |
| 48 for (var i = 0; i < animationsPayload.length; ++i) | 48 for (var i = 0; i < animationsPayload.length; ++i) |
| 49 dumpRule(animationsPayload[i]); | 49 dumpRule(animationsPayload[i]); |
| 50 | 50 |
| 51 InspectorTest.addResult("\n>> Modifying keyframe rule"); | 51 InspectorTest.addResult("\n>> Modifying keyframe rule"); |
| 52 var style = new WebInspector.CSSStyleDeclaration(InspectorTest.cssModel,
null, animationsPayload[1].keyframes[0].style, WebInspector.CSSStyleDeclaration
.Type.Regular); | 52 var style = new SDK.CSSStyleDeclaration(InspectorTest.cssModel, null, an
imationsPayload[1].keyframes[0].style, SDK.CSSStyleDeclaration.Type.Regular); |
| 53 style.setText("width: 123px").then(onStyleEdited); | 53 style.setText("width: 123px").then(onStyleEdited); |
| 54 | 54 |
| 55 function onStyleEdited() | 55 function onStyleEdited() |
| 56 { | 56 { |
| 57 InspectorTest.CSSAgent.getMatchedStylesForNode(nodeId, onModifiedAni
mations); | 57 InspectorTest.CSSAgent.getMatchedStylesForNode(nodeId, onModifiedAni
mations); |
| 58 } | 58 } |
| 59 } | 59 } |
| 60 | 60 |
| 61 function onModifiedAnimations(error, inlinePayload, attributesPayload, match
edPayload, pseudoPayload, inheritedPayload, animationsPayload) | 61 function onModifiedAnimations(error, inlinePayload, attributesPayload, match
edPayload, pseudoPayload, inheritedPayload, animationsPayload) |
| 62 { | 62 { |
| 63 for (var i = 0; i < animationsPayload.length; ++i) | 63 for (var i = 0; i < animationsPayload.length; ++i) |
| 64 dumpRule(animationsPayload[i]); | 64 dumpRule(animationsPayload[i]); |
| 65 InspectorTest.completeTest(); | 65 InspectorTest.completeTest(); |
| 66 } | 66 } |
| 67 } | 67 } |
| 68 | 68 |
| 69 </script> | 69 </script> |
| 70 </head> | 70 </head> |
| 71 | 71 |
| 72 <body onload="runTest()"> | 72 <body onload="runTest()"> |
| 73 <div id="element"></div> | 73 <div id="element"></div> |
| 74 <p> | 74 <p> |
| 75 Tests that proper data and start/end offset positions are reported for CSS keyfr
ames. | 75 Tests that proper data and start/end offset positions are reported for CSS keyfr
ames. |
| 76 </p> | 76 </p> |
| 77 | 77 |
| 78 </body> | 78 </body> |
| 79 </html> | 79 </html> |
| OLD | NEW |