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

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: Fixes 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..e8db39a091f91f6256a9e7726000e7d37b0f2dee 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)',
+ 'htmlidiomatic': 'DOM Core Tests (dart:html) Idiomatic',
'js': 'DOM Core Tests (JavaScript)',
'dart': 'DOM Core Tests (dart)',
'frog': 'DOM Core Tests (frog)',
@@ -75,10 +76,14 @@ class Suites {
static _jsPath(path) => path;
static _domPath(path) => path.replaceFirst('.html', '-dom.html');
static _htmlPath(path) => path.replaceFirst('.html', '-html.html');
+ static _htmlIdiomaticPath(path) =>
+ path.replaceFirst('.html', '-htmlidiomatic.html');
static _frogDomPath(path) =>
'frog/${path.replaceFirst(".html", "-dom-js.html")}';
static _frogHtmlPath(path) =>
'frog/${path.replaceFirst(".html", "-html-js.html")}';
+ static _frogHtmlIdiomaticPath(path) =>
+ 'frog/${path.replaceFirst(".html", "-htmlidiomatic-js.html")}';
static var _SUITE_DESCRIPTIONS;
@@ -94,8 +99,11 @@ class Suites {
add('js', _jsPath, ['js']);
add('dart:dom', _domPath, ['dart', 'dom']);
add('dart:html', _htmlPath, ['dart', 'html']);
+ add('dart:html idiomatic', _htmlPath, ['dart', 'htmlidiomatic']);
add('frog dart:dom', _frogDomPath, ['frog', 'dom']);
add('frog dart:html', _frogHtmlPath, ['frog', 'html']);
+ add('frog dart:html idiomatic', _frogHtmlIdiomaticPath,
+ ['frog', 'htmlidiomatic']);
return _SUITE_DESCRIPTIONS;
}

Powered by Google App Engine
This is Rietveld 408576698