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

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

Issue 10484004: Fix bug in Dromaeo to use the proper generated html file. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Support postMessage in dart2js for dart:html Created 8 years, 6 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 | « lib/html/src/frog_DOMImplementation.dart ('k') | no next file » | 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.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
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
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 }
OLDNEW
« no previous file with comments | « lib/html/src/frog_DOMImplementation.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698