OLD | NEW |
1 #library('Suites.dart'); | 1 #library('Suites.dart'); |
2 | 2 |
3 class Origin { | 3 class Origin { |
4 final String author; | 4 final String author; |
5 final String url; | 5 final String url; |
6 | 6 |
7 const Origin(this.author, this.url); | 7 const Origin(this.author, this.url); |
8 } | 8 } |
9 | 9 |
10 class SuiteDescription { | 10 class SuiteDescription { |
(...skipping 12 matching lines...) Expand all Loading... |
23 static final JOHN_RESIG = const Origin('John Resig', 'http://ejohn.org/'); | 23 static final JOHN_RESIG = const Origin('John Resig', 'http://ejohn.org/'); |
24 | 24 |
25 static final CATEGORIES = const { | 25 static final CATEGORIES = const { |
26 // Platform tags | 26 // Platform tags |
27 'js': 'DOM Core Tests (JavaScript)', | 27 'js': 'DOM Core Tests (JavaScript)', |
28 'dart': 'DOM Core Tests (dart)', | 28 'dart': 'DOM Core Tests (dart)', |
29 'frog': 'DOM Core Tests (frog)', | 29 'frog': 'DOM Core Tests (frog)', |
30 'dart2js': 'DOM Core Tests (dart2js)', | 30 'dart2js': 'DOM Core Tests (dart2js)', |
31 | 31 |
32 // Library tags | 32 // Library tags |
33 'dom': 'DOM Core Tests (dart:dom_deprecated)', | |
34 'html': 'DOM Core Tests (dart:html)', | 33 'html': 'DOM Core Tests (dart:html)', |
35 'htmlidiomatic': 'DOM Core Tests (dart:html) Idiomatic', | 34 'htmlidiomatic': 'DOM Core Tests (dart:html) Idiomatic', |
36 }; | 35 }; |
37 | 36 |
38 static final _CORE_TEST_OPTIONS = const [ | 37 static final _CORE_TEST_OPTIONS = const [ |
39 // A list of valid combinations for core Dromaeo DOM tests. | 38 // A list of valid combinations for core Dromaeo DOM tests. |
40 // Each item in the list is a pair of (platform x [variants]). | 39 // Each item in the list is a pair of (platform x [variants]). |
41 const ['js', const ['']], | 40 const ['js', const ['']], |
42 const ['dart', const ['html', 'htmlidiomatic']], | 41 const ['dart', const ['html', 'htmlidiomatic']], |
43 const ['frog', const ['dom', 'html', 'htmlidiomatic']], | 42 const ['frog', const ['html', 'htmlidiomatic']], |
44 const ['dart2js', const ['dom', 'html', 'htmlidiomatic']], | 43 const ['dart2js', const ['html', 'htmlidiomatic']], |
45 ]; | 44 ]; |
46 | 45 |
47 static final _CORE_SUITE_DESCRIPTIONS = const [ | 46 static final _CORE_SUITE_DESCRIPTIONS = const [ |
48 const SuiteDescription( | 47 const SuiteDescription( |
49 'dom-attr.html', | 48 'dom-attr.html', |
50 'DOM Attributes', | 49 'DOM Attributes', |
51 JOHN_RESIG, | 50 JOHN_RESIG, |
52 'Setting and getting DOM node attributes', | 51 'Setting and getting DOM node attributes', |
53 const ['attributes'], | 52 const ['attributes'], |
54 _CORE_TEST_OPTIONS), | 53 _CORE_TEST_OPTIONS), |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 return CATEGORIES[tags]; | 158 return CATEGORIES[tags]; |
160 } | 159 } |
161 for (final suite in _CORE_SUITE_DESCRIPTIONS) { | 160 for (final suite in _CORE_SUITE_DESCRIPTIONS) { |
162 if (suite.tags[0] == tags) { | 161 if (suite.tags[0] == tags) { |
163 return suite.name; | 162 return suite.name; |
164 } | 163 } |
165 } | 164 } |
166 return null; | 165 return null; |
167 } | 166 } |
168 } | 167 } |
OLD | NEW |