OLD | NEW |
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 analyzer_test; | 5 library analyzer_test; |
6 | 6 |
7 import 'package:html5lib/dom.dart'; | 7 import 'package:html5lib/dom.dart'; |
8 import 'package:html5lib/parser.dart'; | 8 import 'package:html5lib/parser.dart'; |
9 import 'package:unittest/unittest.dart'; | 9 import 'package:unittest/unittest.dart'; |
10 import 'package:unittest/vm_config.dart'; | 10 import 'package:unittest/vm_config.dart'; |
(...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
761 var fileInfo = analyzeFiles(files); | 761 var fileInfo = analyzeFiles(files); |
762 var info = fileInfo['index.html']; | 762 var info = fileInfo['index.html']; |
763 expect(info.components.keys, equals(['x-bar', 'x-foo'])); | 763 expect(info.components.keys, equals(['x-bar', 'x-foo'])); |
764 | 764 |
765 var compInfo = fileInfo['foo.html'].declaredComponents[0]; | 765 var compInfo = fileInfo['foo.html'].declaredComponents[0]; |
766 expect(info.query('x-foo').component, equals(compInfo)); | 766 expect(info.query('x-foo').component, equals(compInfo)); |
767 compInfo = fileInfo['bar.html'].declaredComponents[0]; | 767 compInfo = fileInfo['bar.html'].declaredComponents[0]; |
768 expect(info.query('x-bar').component, equals(compInfo)); | 768 expect(info.query('x-bar').component, equals(compInfo)); |
769 }); | 769 }); |
770 }); | 770 }); |
771 } | 771 } |
OLD | NEW |