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

Side by Side Diff: pkg/csslib/test/compiler_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/pubspec.yaml ('k') | pkg/csslib/test/declaration_test.dart » ('j') | 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 compiler_test; 5 library compiler_test;
6 6
7 import 'dart:convert'; 7 import 'dart:convert';
8 import 'package:unittest/unittest.dart'; 8 import 'package:unittest/unittest.dart';
9 import 'package:csslib/parser.dart'; 9 import 'package:csslib/parser.dart';
10 import 'package:csslib/visitor.dart'; 10 import 'package:csslib/visitor.dart';
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 div:nth-child(2n) { color : red; } 584 div:nth-child(2n) { color : red; }
585 '''; 585 ''';
586 586
587 var stylesheet = parseCss(input, errors: errors, 587 var stylesheet = parseCss(input, errors: errors,
588 opts: ['--no-colors', 'memory']); 588 opts: ['--no-colors', 'memory']);
589 589
590 expect(stylesheet != null, true); 590 expect(stylesheet != null, true);
591 expect(errors.isEmpty, true, reason: errors.toString()); 591 expect(errors.isEmpty, true, reason: errors.toString());
592 expect(prettyPrint(stylesheet), r''' 592 expect(prettyPrint(stylesheet), r'''
593 html:lang(fr-ca) { 593 html:lang(fr-ca) {
594 quotes: "\" " " \""; 594 quotes: '" ' ' "';
595 } 595 }
596 zoom { 596 zoom {
597 } 597 }
598 a:link { 598 a:link {
599 color: #f00; 599 color: #f00;
600 } 600 }
601 :link { 601 :link {
602 color: #00f; 602 color: #00f;
603 } 603 }
604 a:focus { 604 a:focus {
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
719 test('Selector Groups', testSelectorGroups); 719 test('Selector Groups', testSelectorGroups);
720 test('Combinator', testCombinator); 720 test('Combinator', testCombinator);
721 test('Wildcards', testWildcard); 721 test('Wildcards', testWildcard);
722 test('Pseudo', testPseudo); 722 test('Pseudo', testPseudo);
723 test('Attributes', testAttribute); 723 test('Attributes', testAttribute);
724 test('Negation', testNegation); 724 test('Negation', testNegation);
725 test('@host', testHost); 725 test('@host', testHost);
726 test('Parse List<int> as input', testArrayOfChars); 726 test('Parse List<int> as input', testArrayOfChars);
727 test('Simple Emitter', testEmitter); 727 test('Simple Emitter', testEmitter);
728 } 728 }
OLDNEW
« no previous file with comments | « pkg/csslib/pubspec.yaml ('k') | pkg/csslib/test/declaration_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698