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

Unified Diff: samples/third_party/dromaeo/Suites.dart

Issue 9732019: dart:html perf optimization based on runing Dromaeo benchmarks (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Respond to code review comments Created 8 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: samples/third_party/dromaeo/Suites.dart
diff --git a/samples/third_party/dromaeo/Suites.dart b/samples/third_party/dromaeo/Suites.dart
index c8e860fdefd01a2f97638ef73a061828ae2d67b0..c8d279c5471a00184159db4b55c06b90d1366169 100644
--- a/samples/third_party/dromaeo/Suites.dart
+++ b/samples/third_party/dromaeo/Suites.dart
@@ -24,6 +24,7 @@ class Suites {
static final CATEGORIES = const {
'dom': 'DOM Core Tests (dart:dom)',
'html': 'DOM Core Tests (dart:html)',
+ 'htmlfast': 'DOM Core Tests (dart:html) Fast',
'js': 'DOM Core Tests (JavaScript)',
'dart': 'DOM Core Tests (dart)',
'frog': 'DOM Core Tests (frog)',
@@ -75,10 +76,13 @@ class Suites {
static _jsPath(path) => path;
static _domPath(path) => path.replaceFirst('.html', '-dom.html');
static _htmlPath(path) => path.replaceFirst('.html', '-html.html');
+ static _htmlFastPath(path) => path.replaceFirst('.html', '-htmlfast.html');
static _frogDomPath(path) =>
'frog/${path.replaceFirst(".html", "-dom-js.html")}';
static _frogHtmlPath(path) =>
'frog/${path.replaceFirst(".html", "-html-js.html")}';
+ static _frogHtmlFastPath(path) =>
+ 'frog/${path.replaceFirst(".html", "-htmlfast-js.html")}';
static var _SUITE_DESCRIPTIONS;
@@ -94,8 +98,10 @@ class Suites {
add('js', _jsPath, ['js']);
add('dart:dom', _domPath, ['dart', 'dom']);
add('dart:html', _htmlPath, ['dart', 'html']);
+ add('dart:html fast', _htmlPath, ['dart', 'htmlfast']);
add('frog dart:dom', _frogDomPath, ['frog', 'dom']);
add('frog dart:html', _frogHtmlPath, ['frog', 'html']);
+ add('frog dart:html fast', _frogHtmlFastPath, ['frog', 'htmlfast']);
return _SUITE_DESCRIPTIONS;
}

Powered by Google App Engine
This is Rietveld 408576698