| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 } | 72 } |
| 73 return suites.map(getVariant); | 73 return suites.map(getVariant); |
| 74 } | 74 } |
| 75 | 75 |
| 76 // Mappings from original path to Dart-specific variants. | 76 // Mappings from original path to Dart-specific variants. |
| 77 static _jsPath(path) => path; | 77 static _jsPath(path) => path; |
| 78 static _nativeMapper(lib) => | 78 static _nativeMapper(lib) => |
| 79 ((path) => path.replaceFirst('.html', '-$lib.html')); | 79 ((path) => path.replaceFirst('.html', '-$lib.html')); |
| 80 static _compiledMapper(lib, compiler) => | 80 static _compiledMapper(lib, compiler) => |
| 81 ((path) => | 81 ((path) => |
| 82 '$compiler/${path.replaceFirst(".html", "-dom-js.html")}'); | 82 '$compiler/${path.replaceFirst(".html", "-$lib-js.html")}'); |
| 83 | 83 |
| 84 static var _SUITE_DESCRIPTIONS; | 84 static var _SUITE_DESCRIPTIONS; |
| 85 | 85 |
| 86 static List<SuiteDescription> get SUITE_DESCRIPTIONS() { | 86 static List<SuiteDescription> get SUITE_DESCRIPTIONS() { |
| 87 if (null !== _SUITE_DESCRIPTIONS) { | 87 if (null !== _SUITE_DESCRIPTIONS) { |
| 88 return _SUITE_DESCRIPTIONS; | 88 return _SUITE_DESCRIPTIONS; |
| 89 } | 89 } |
| 90 _SUITE_DESCRIPTIONS = <SuiteDescription>[]; | 90 _SUITE_DESCRIPTIONS = <SuiteDescription>[]; |
| 91 add(variant, mapper, tags) { | 91 add(variant, mapper, tags) { |
| 92 _SUITE_DESCRIPTIONS.addAll( | 92 _SUITE_DESCRIPTIONS.addAll( |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 return CATEGORIES[tags]; | 134 return CATEGORIES[tags]; |
| 135 } | 135 } |
| 136 for (final suite in _CORE_SUITE_DESCRIPTIONS) { | 136 for (final suite in _CORE_SUITE_DESCRIPTIONS) { |
| 137 if (suite.tags[0] == tags) { | 137 if (suite.tags[0] == tags) { |
| 138 return suite.name; | 138 return suite.name; |
| 139 } | 139 } |
| 140 } | 140 } |
| 141 return null; | 141 return null; |
| 142 } | 142 } |
| 143 } | 143 } |
| OLD | NEW |