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

Side by Side Diff: LayoutTests/inspector-protocol/css/css-set-style-text-expected.txt

Issue 1181213007: DevTools: introduce CSS.setStyleText, we'll migrate setPropertyText to it later. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: review comments addressed Created 5 years, 6 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
OLDNEW
(Empty)
1 The test verifies functionality of protocol method CSS.setStyleText.
2
3 ==== Initial style sheet text ====
4 #test {
5 box-sizing: border-box;
6 }
7
8 #test {
9 /* resetting some properties */
10 line-height: 1;
11 font-family: "Arial";
12 color: blue;
13 display: flex; /* flex FTW! */
14 }
15
16 @media (min-width: 1px) {
17 #test {
18 font-size: 200%;
19 }
20
21 #test {
22 }
23 }
24
25
26
27 Running test: testBasicSetStyle
28 ==== Style sheet text ====
29 #test {
30 content: 'EDITED';
31 }
32
33 #test {
34 /* resetting some properties */
35 line-height: 1;
36 font-family: "Arial";
37 color: blue;
38 display: flex; /* flex FTW! */
39 }
40
41 @media (min-width: 1px) {
42 #test {
43 font-size: 200%;
44 }
45
46 #test {
47 }
48 }
49
50
51 Dumping matched rules:
52 *#test* { regular
53 content: 'EDITED';
54 }
55 *#test* { regular
56 line-height: 1;
57 font-family: "Arial";
58 color: blue;
59 display: flex;
60 }
61 @media (min-width: 1px)
62 *#test* { regular
63 font-size: 200%;
64 }
65 @media (min-width: 1px)
66 *#test* { regular
67 }
68
69 Running test: testSetStylePoorContent
70 Expected protocol error: SyntaxError Style text is not valid.
71 Dumping matched rules:
72 *#test* { regular
73 box-sizing: border-box;
74 }
75 *#test* { regular
76 line-height: 1;
77 font-family: "Arial";
78 color: blue;
79 display: flex;
80 }
81 @media (min-width: 1px)
82 *#test* { regular
83 font-size: 200%;
84 }
85 @media (min-width: 1px)
86 *#test* { regular
87 }
88
89 Running test: testSetStyleInMedia
90 ==== Style sheet text ====
91 #test {
92 box-sizing: border-box;
93 }
94
95 #test {
96 /* resetting some properties */
97 line-height: 1;
98 font-family: "Arial";
99 color: blue;
100 display: flex; /* flex FTW! */
101 }
102
103 @media (min-width: 1px) {
104 #test {
105 content: 'EDITED';
106 color: red;
107 /** foo */
108 }
109
110 #test {
111 }
112 }
113
114
115 Dumping matched rules:
116 *#test* { regular
117 box-sizing: border-box;
118 }
119 *#test* { regular
120 line-height: 1;
121 font-family: "Arial";
122 color: blue;
123 display: flex;
124 }
125 @media (min-width: 1px)
126 *#test* { regular
127 content: 'EDITED';
128 color: red;
129 }
130 @media (min-width: 1px)
131 *#test* { regular
132 }
133
134 Running test: testDeleteStyleBody
135 ==== Style sheet text ====
136 #test {
137 box-sizing: border-box;
138 }
139
140 #test {
141 /* resetting some properties */
142 line-height: 1;
143 font-family: "Arial";
144 color: blue;
145 display: flex; /* flex FTW! */
146 }
147
148 @media (min-width: 1px) {
149 #test {}
150
151 #test {
152 }
153 }
154
155
156 Dumping matched rules:
157 *#test* { regular
158 box-sizing: border-box;
159 }
160 *#test* { regular
161 line-height: 1;
162 font-family: "Arial";
163 color: blue;
164 display: flex;
165 }
166 @media (min-width: 1px)
167 *#test* { regular
168 }
169 @media (min-width: 1px)
170 *#test* { regular
171 }
172
173 Running test: testSetStylePoorRange
174 Expected protocol error: Specified range is out of bounds
175 Dumping matched rules:
176 *#test* { regular
177 box-sizing: border-box;
178 }
179 *#test* { regular
180 line-height: 1;
181 font-family: "Arial";
182 color: blue;
183 display: flex;
184 }
185 @media (min-width: 1px)
186 *#test* { regular
187 font-size: 200%;
188 }
189 @media (min-width: 1px)
190 *#test* { regular
191 }
192
193 Running test: testSetStyleOpenComment
194 Expected protocol error: SyntaxError Style text is not valid.
195 Dumping matched rules:
196 *#test* { regular
197 box-sizing: border-box;
198 }
199 *#test* { regular
200 line-height: 1;
201 font-family: "Arial";
202 color: blue;
203 display: flex;
204 }
205 @media (min-width: 1px)
206 *#test* { regular
207 font-size: 200%;
208 }
209 @media (min-width: 1px)
210 *#test* { regular
211 }
212
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698