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

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

Issue 304603003: Make source map location information more readable. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « pkg/csslib/test/selector_test.dart ('k') | pkg/source_maps/CHANGELOG.md » ('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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 var_test; 5 library var_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 List options = ['--no-colors', '--warnings_as_errors', 'memory']; 10 List options = ['--no-colors', '--warnings_as_errors', 'memory'];
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 } 385 }
386 .test-1 { 386 .test-1 {
387 color: #0f0; 387 color: #0f0;
388 } 388 }
389 .test-2 { 389 .test-2 {
390 color: ; 390 color: ;
391 background: ; 391 background: ;
392 }'''; 392 }''';
393 393
394 var errorStrings = [ 394 var errorStrings = [
395 'error :5:14: Variable is not defined.\n' 395 'error on line 5, column 14: Variable is not defined.\n'
396 ' var-a: var(b);\n' 396 ' var-a: var(b);\n'
397 ' ^^', 397 ' ^^',
398 'error :6:14: Variable is not defined.\n' 398 'error on line 6, column 14: Variable is not defined.\n'
399 ' var-b: var(c);\n' 399 ' var-b: var(c);\n'
400 ' ^^', 400 ' ^^',
401 'error :9:16: Variable is not defined.\n' 401 'error on line 9, column 16: Variable is not defined.\n'
402 ' var-one: var(two);\n' 402 ' var-one: var(two);\n'
403 ' ^^^^', 403 ' ^^^^',
404 'error :12:17: Variable is not defined.\n' 404 'error on line 12, column 17: Variable is not defined.\n'
405 ' var-four: var(five);\n' 405 ' var-four: var(five);\n'
406 ' ^^^^^', 406 ' ^^^^^',
407 'error :13:17: Variable is not defined.\n' 407 'error on line 13, column 17: Variable is not defined.\n'
408 ' var-five: var(six);\n' 408 ' var-five: var(six);\n'
409 ' ^^^^', 409 ' ^^^^',
410 'error :16:18: Variable is not defined.\n' 410 'error on line 16, column 18: Variable is not defined.\n'
411 ' var-def-1: var(def-2);\n' 411 ' var-def-1: var(def-2);\n'
412 ' ^^^^^^', 412 ' ^^^^^^',
413 'error :17:18: Variable is not defined.\n' 413 'error on line 17, column 18: Variable is not defined.\n'
414 ' var-def-2: var(def-3);\n' 414 ' var-def-2: var(def-3);\n'
415 ' ^^^^^^', 415 ' ^^^^^^',
416 ]; 416 ];
417 417
418 var generated = r''':root { 418 var generated = r''':root {
419 var-color-background: #f00; 419 var-color-background: #f00;
420 var-color-foreground: #00f; 420 var-color-foreground: #00f;
421 var-a: var(b); 421 var-a: var(b);
422 var-b: var(c); 422 var-b: var(c);
423 var-c: #0f0; 423 var-c: #0f0;
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after
917 test('Expressions var', expressionsVar); 917 test('Expressions var', expressionsVar);
918 test('Default value in var()', defaultVar); 918 test('Default value in var()', defaultVar);
919 test('CSS Parser only var', parserVar); 919 test('CSS Parser only var', parserVar);
920 test('Var syntax', testVar); 920 test('Var syntax', testVar);
921 test('Indirects', testIndirects); 921 test('Indirects', testIndirects);
922 test('Forward Refs', undefinedVars); 922 test('Forward Refs', undefinedVars);
923 test('Less syntax', testLess); 923 test('Less syntax', testLess);
924 test('Polyfill', polyfill); 924 test('Polyfill', polyfill);
925 test('Multi-file', includes); 925 test('Multi-file', includes);
926 } 926 }
OLDNEW
« no previous file with comments | « pkg/csslib/test/selector_test.dart ('k') | pkg/source_maps/CHANGELOG.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698