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

Side by Side Diff: pkg/csslib/test/declaration_test.dart

Issue 126063003: Fixed single quote escaping (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 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 | « pkg/csslib/test/compiler_test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library declaration_test; 5 library declaration_test;
6 6
7 import 'package:unittest/unittest.dart'; 7 import 'package:unittest/unittest.dart';
8 import 'testing.dart'; 8 import 'testing.dart';
9 9
10 10
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 content: '✔'; 251 content: '✔';
252 line-height: 43px; 252 line-height: 43px;
253 font-size: 20px; 253 font-size: 20px;
254 color: #d9d9d9; 254 color: #d9d9d9;
255 text-shadow: 0 -1px 0 #bfbfbf; 255 text-shadow: 0 -1px 0 #bfbfbf;
256 } 256 }
257 '''; 257 ''';
258 258
259 final String generated = r''' 259 final String generated = r'''
260 .toggle:after { 260 .toggle:after {
261 content: "✔"; 261 content: '✔';
262 line-height: 43px; 262 line-height: 43px;
263 font-size: 20px; 263 font-size: 20px;
264 color: #d9d9d9; 264 color: #d9d9d9;
265 text-shadow: 0 -1px 0 #bfbfbf; 265 text-shadow: 0 -1px 0 #bfbfbf;
266 }'''; 266 }''';
267 267
268 var stylesheet = parseCss(input, errors: errors); 268 var stylesheet = parseCss(input, errors: errors);
269 269
270 expect(stylesheet != null, true); 270 expect(stylesheet != null, true);
271 expect(errors.isEmpty, true, reason: errors.toString()); 271 expect(errors.isEmpty, true, reason: errors.toString());
(...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after
1025 test('Newer CSS', testNewerCss); 1025 test('Newer CSS', testNewerCss);
1026 test('Media Queries', testMediaQueries); 1026 test('Media Queries', testMediaQueries);
1027 test('Font-Face', testFontFace); 1027 test('Font-Face', testFontFace);
1028 test('CSS file', testCssFile); 1028 test('CSS file', testCssFile);
1029 test('Compact Emitter', testCompactEmitter); 1029 test('Compact Emitter', testCompactEmitter);
1030 test('Selector Negation', testNotSelectors); 1030 test('Selector Negation', testNotSelectors);
1031 test('IE stuff', testIE); 1031 test('IE stuff', testIE);
1032 test('IE declaration syntax', testIEDeclaration); 1032 test('IE declaration syntax', testIEDeclaration);
1033 test('Hanging bugs', testHangs); 1033 test('Hanging bugs', testHangs);
1034 } 1034 }
OLDNEW
« no previous file with comments | « pkg/csslib/test/compiler_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698