Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(257)

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/elements/styles-4/keyframes-source-offsets.html

Issue 1954423002: DevTools: introduce CSSStyleSheetHeader.originalContentProvider() method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@simplify-network-project
Patch Set: address comments Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 WebInspector.CSSStyleDeclaration(InspectorTest.cssModel, null, animationsPayload[1].keyframes[0].style, WebInspector.CSSStyleDeclaration .Type.Regular);
53 style.setText("width: 123px"); 53 style.setText("width: 123px").then(onStyleEdited);
54 54
55 InspectorTest.CSSAgent.getMatchedStylesForNode(nodeId, onModifiedAnimati ons); 55 function onStyleEdited()
56 {
57 InspectorTest.CSSAgent.getMatchedStylesForNode(nodeId, onModifiedAni mations);
58 }
56 } 59 }
57 60
58 function onModifiedAnimations(error, inlinePayload, attributesPayload, match edPayload, pseudoPayload, inheritedPayload, animationsPayload) 61 function onModifiedAnimations(error, inlinePayload, attributesPayload, match edPayload, pseudoPayload, inheritedPayload, animationsPayload)
59 { 62 {
60 for (var i = 0; i < animationsPayload.length; ++i) 63 for (var i = 0; i < animationsPayload.length; ++i)
61 dumpRule(animationsPayload[i]); 64 dumpRule(animationsPayload[i]);
62 InspectorTest.completeTest(); 65 InspectorTest.completeTest();
63 } 66 }
64 } 67 }
65 68
66 </script> 69 </script>
67 </head> 70 </head>
68 71
69 <body onload="runTest()"> 72 <body onload="runTest()">
70 <div id="element"></div> 73 <div id="element"></div>
71 <p> 74 <p>
72 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.
73 </p> 76 </p>
74 77
75 </body> 78 </body>
76 </html> 79 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698