| OLD | NEW |
| (Empty) |
| 1 class Origin { | |
| 2 final String author; | |
| 3 final String url; | |
| 4 | |
| 5 const Origin(this.author, this.url); | |
| 6 } | |
| 7 | |
| 8 class SuiteDescription { | |
| 9 final String file; | |
| 10 final String name; | |
| 11 final Origin origin; | |
| 12 final String description; | |
| 13 | |
| 14 const SuiteDescription(this.file, this.name, this.origin, this.description); | |
| 15 } | |
| 16 | |
| 17 class Suites { | |
| 18 static final JOHN_RESIG = const Origin('John Resig', 'http://ejohn.org/'); | |
| 19 | |
| 20 static final SUITE_DESCRIPTIONS = const [ | |
| 21 const SuiteDescription( | |
| 22 'dom-attr.html', | |
| 23 'DOM Attributes', | |
| 24 JOHN_RESIG, | |
| 25 'Setting and getting DOM node attributes'), | |
| 26 const SuiteDescription( | |
| 27 'dom-modify.html', | |
| 28 'DOM Modification', | |
| 29 JOHN_RESIG, | |
| 30 'Creating and injecting DOM nodes into a document'), | |
| 31 const SuiteDescription( | |
| 32 'dom-query.html', | |
| 33 'DOM Query', | |
| 34 JOHN_RESIG, | |
| 35 'Querying DOM elements in a document'), | |
| 36 const SuiteDescription( | |
| 37 'dom-traverse.html', | |
| 38 'DOM Traversal', | |
| 39 JOHN_RESIG, | |
| 40 'Traversing a DOM structure') | |
| 41 ]; | |
| 42 } | |
| OLD | NEW |