| OLD | NEW |
| 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 css_test; | 5 library css_test; |
| 6 | 6 |
| 7 import 'package:path/path.dart' as path; |
| 8 import 'package:polymer/src/messages.dart'; |
| 9 import 'package:polymer/src/utils.dart' as utils; |
| 7 import 'package:unittest/compact_vm_config.dart'; | 10 import 'package:unittest/compact_vm_config.dart'; |
| 8 import 'package:unittest/unittest.dart'; | 11 import 'package:unittest/unittest.dart'; |
| 9 import 'package:polymer/src/messages.dart'; | |
| 10 | 12 |
| 11 import 'testing.dart'; | 13 import 'testing.dart'; |
| 12 | 14 |
| 13 test_simple_var() { | 15 test_simple_var() { |
| 14 Map createFiles() { | 16 Map createFiles() { |
| 15 return { | 17 return { |
| 16 'index.html': | 18 'index.html': |
| 17 '<!DOCTYPE html>' | 19 '<!DOCTYPE html>' |
| 18 '<html lang="en">' | 20 '<html lang="en">' |
| 19 '<head>' | 21 '<head>' |
| (...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 531 '.test > *[pseudo="x-foo2_2"] {\n' | 533 '.test > *[pseudo="x-foo2_2"] {\n' |
| 532 ' color: #008000;\n' | 534 ' color: #008000;\n' |
| 533 '}' | 535 '}' |
| 534 '</style>')); | 536 '</style>')); |
| 535 })); | 537 })); |
| 536 } | 538 } |
| 537 | 539 |
| 538 main() { | 540 main() { |
| 539 useCompactVMConfiguration(); | 541 useCompactVMConfiguration(); |
| 540 | 542 |
| 541 test('test_simple_var', test_simple_var); | 543 group('css', () { |
| 542 test('test_var', test_var); | 544 setUp(() { |
| 543 test('test_simple_import', test_simple_import); | 545 utils.path = new path.Builder(style: path.Style.posix); |
| 544 test('test_imports', test_imports); | 546 }); |
| 545 test('test_component_var', test_component_var); | 547 |
| 546 test('test_pseudo_element', test_pseudo_element); | 548 tearDown(() { |
| 549 utils.path = new path.Builder(); |
| 550 }); |
| 551 |
| 552 test('test_simple_var', test_simple_var); |
| 553 test('test_var', test_var); |
| 554 test('test_simple_import', test_simple_import); |
| 555 test('test_imports', test_imports); |
| 556 test('test_component_var', test_component_var); |
| 557 test('test_pseudo_element', test_pseudo_element); |
| 558 }); |
| 547 } | 559 } |
| OLD | NEW |