Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(292)

Side by Side Diff: samples/third_party/dromaeo/Suites.dart

Issue 12086028: Fix up dromaeo after lib v2 merge and add Dromaeo smoketest to prevent future (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « samples/third_party/dromaeo/README ('k') | samples/third_party/dromaeo/common/BenchUtil.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 13 matching lines...) Expand all
24 24
25 static const CATEGORIES = const { 25 static const 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 'html': 'DOM Core Tests (dart:html)', 33 'html': 'DOM Core Tests (dart:html)',
34 'htmlidiomatic': 'DOM Core Tests (dart:html) Idiomatic',
35 }; 34 };
36 35
37 static const _CORE_TEST_OPTIONS = const [ 36 static const _CORE_TEST_OPTIONS = const [
38 // A list of valid combinations for core Dromaeo DOM tests. 37 // A list of valid combinations for core Dromaeo DOM tests.
39 // 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]).
40 const ['js', const ['']], 39 const ['js', const ['']],
41 const ['dart', const ['html', 'htmlidiomatic']], 40 const ['dart', const ['html']],
42 const ['frog', const ['html', 'htmlidiomatic']], 41 const ['frog', const ['html']],
43 const ['dart2js', const ['html', 'htmlidiomatic']], 42 const ['dart2js', const ['html']],
44 ]; 43 ];
45 44
46 static const _CORE_SUITE_DESCRIPTIONS = const [ 45 static const _CORE_SUITE_DESCRIPTIONS = const [
47 const SuiteDescription( 46 const SuiteDescription(
48 'dom-attr.html', 47 'dom-attr.html',
49 'DOM Attributes', 48 'DOM Attributes',
50 JOHN_RESIG, 49 JOHN_RESIG,
51 'Setting and getting DOM node attributes', 50 'Setting and getting DOM node attributes',
52 const ['attributes'], 51 const ['attributes'],
53 _CORE_TEST_OPTIONS), 52 _CORE_TEST_OPTIONS),
(...skipping 11 matching lines...) Expand all
65 'Querying DOM elements in a document', 64 'Querying DOM elements in a document',
66 const ['query'], 65 const ['query'],
67 _CORE_TEST_OPTIONS), 66 _CORE_TEST_OPTIONS),
68 const SuiteDescription( 67 const SuiteDescription(
69 'dom-traverse.html', 68 'dom-traverse.html',
70 'DOM Traversal', 69 'DOM Traversal',
71 JOHN_RESIG, 70 JOHN_RESIG,
72 'Traversing a DOM structure', 71 'Traversing a DOM structure',
73 const ['traverse'], 72 const ['traverse'],
74 _CORE_TEST_OPTIONS), 73 _CORE_TEST_OPTIONS),
74 const SuiteDescription(
75 '../../../../../tests/html/dromaeo_smoke.html',
76 'Smoke test',
77 const Origin('', ''),
78 'Dromaeo no-op smoke test',
79 const ['nothing'],
80 _CORE_TEST_OPTIONS),
75 ]; 81 ];
76 82
77 // Mappings from original path to actual path given platform/library. 83 // Mappings from original path to actual path given platform/library.
78 static _getHtmlPathForVariant(platform, lib, path) { 84 static _getHtmlPathForVariant(platform, lib, path) {
79 if (lib != '') { 85 if (lib != '') {
80 lib = '-$lib'; 86 lib = '-$lib';
81 } 87 }
82 switch (platform) { 88 switch (platform) {
83 case 'js': 89 case 'js':
84 case 'dart': 90 case 'dart':
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 return CATEGORIES[tags]; 164 return CATEGORIES[tags];
159 } 165 }
160 for (final suite in _CORE_SUITE_DESCRIPTIONS) { 166 for (final suite in _CORE_SUITE_DESCRIPTIONS) {
161 if (suite.tags[0] == tags) { 167 if (suite.tags[0] == tags) {
162 return suite.name; 168 return suite.name;
163 } 169 }
164 } 170 }
165 return null; 171 return null;
166 } 172 }
167 } 173 }
OLDNEW
« no previous file with comments | « samples/third_party/dromaeo/README ('k') | samples/third_party/dromaeo/common/BenchUtil.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698