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

Side by Side Diff: LayoutTests/inspector/elements/styles-4/styles-formatting.html

Issue 1211323008: DevTools: [Regression] setting property text throws exceptions (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/inspector/elements/styles-4/styles-formatting-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/inspector/elements/styles-4/styles-formatting-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698