| OLD | NEW |
| 1 library Suites; | 1 library Suites; |
| 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 26 matching lines...) Expand all Loading... |
| 37 // A list of valid combinations for core Dromaeo DOM tests. | 37 // A list of valid combinations for core Dromaeo DOM tests. |
| 38 // Each item in the list is a pair of (platform x [variants]). | 38 // Each item in the list is a pair of (platform x [variants]). |
| 39 const ['js', const ['']], | 39 const ['js', const ['']], |
| 40 const ['dart', const ['html']], | 40 const ['dart', const ['html']], |
| 41 const ['frog', const ['html']], | 41 const ['frog', const ['html']], |
| 42 const ['dart2js', const ['html']], | 42 const ['dart2js', const ['html']], |
| 43 ]; | 43 ]; |
| 44 | 44 |
| 45 static const _CORE_SUITE_DESCRIPTIONS = const [ | 45 static const _CORE_SUITE_DESCRIPTIONS = const [ |
| 46 const SuiteDescription( | 46 const SuiteDescription( |
| 47 'dom-attr.html', | 47 'tests/dom-attr.html', |
| 48 'DOM Attributes', | 48 'DOM Attributes', |
| 49 JOHN_RESIG, | 49 JOHN_RESIG, |
| 50 'Setting and getting DOM node attributes', | 50 'Setting and getting DOM node attributes', |
| 51 const ['attributes'], | 51 const ['attributes'], |
| 52 _CORE_TEST_OPTIONS), | 52 _CORE_TEST_OPTIONS), |
| 53 const SuiteDescription( | 53 const SuiteDescription( |
| 54 'dom-modify.html', | 54 'tests/dom-modify.html', |
| 55 'DOM Modification', | 55 'DOM Modification', |
| 56 JOHN_RESIG, | 56 JOHN_RESIG, |
| 57 'Creating and injecting DOM nodes into a document', | 57 'Creating and injecting DOM nodes into a document', |
| 58 const ['modify'], | 58 const ['modify'], |
| 59 _CORE_TEST_OPTIONS), | 59 _CORE_TEST_OPTIONS), |
| 60 const SuiteDescription( | 60 const SuiteDescription( |
| 61 'dom-query.html', | 61 'tests/dom-query.html', |
| 62 'DOM Query', | 62 'DOM Query', |
| 63 JOHN_RESIG, | 63 JOHN_RESIG, |
| 64 'Querying DOM elements in a document', | 64 'Querying DOM elements in a document', |
| 65 const ['query'], | 65 const ['query'], |
| 66 _CORE_TEST_OPTIONS), | 66 _CORE_TEST_OPTIONS), |
| 67 const SuiteDescription( | 67 const SuiteDescription( |
| 68 'dom-traverse.html', | 68 'tests/dom-traverse.html', |
| 69 'DOM Traversal', | 69 'DOM Traversal', |
| 70 JOHN_RESIG, | 70 JOHN_RESIG, |
| 71 'Traversing a DOM structure', | 71 'Traversing a DOM structure', |
| 72 const ['traverse'], | 72 const ['traverse'], |
| 73 _CORE_TEST_OPTIONS), | 73 _CORE_TEST_OPTIONS), |
| 74 const SuiteDescription( | 74 const SuiteDescription( |
| 75 '../../../../../tests/html/dromaeo_smoke.html', | 75 '/root_dart/tests/html/dromaeo_smoke.html', |
| 76 'Smoke test', | 76 'Smoke test', |
| 77 const Origin('', ''), | 77 const Origin('', ''), |
| 78 'Dromaeo no-op smoke test', | 78 'Dromaeo no-op smoke test', |
| 79 const ['nothing'], | 79 const ['nothing'], |
| 80 _CORE_TEST_OPTIONS), | 80 _CORE_TEST_OPTIONS), |
| 81 ]; | 81 ]; |
| 82 | 82 |
| 83 // Mappings from original path to actual path given platform/library. | 83 // Mappings from original path to actual path given platform/library. |
| 84 static _getHtmlPathForVariant(platform, lib, path) { | 84 static _getHtmlPathForVariant(platform, lib, path) { |
| 85 if (lib != '') { | 85 if (lib != '') { |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 return CATEGORIES[tags]; | 164 return CATEGORIES[tags]; |
| 165 } | 165 } |
| 166 for (final suite in _CORE_SUITE_DESCRIPTIONS) { | 166 for (final suite in _CORE_SUITE_DESCRIPTIONS) { |
| 167 if (suite.tags[0] == tags) { | 167 if (suite.tags[0] == tags) { |
| 168 return suite.name; | 168 return suite.name; |
| 169 } | 169 } |
| 170 } | 170 } |
| 171 return null; | 171 return null; |
| 172 } | 172 } |
| 173 } | 173 } |
| OLD | NEW |