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

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

Issue 10577010: Get Dromaeo benchmarks running again. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/testing/perf_testing/run_perf_tests.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/third_party/dromaeo/Dromaeo.dart
===================================================================
--- samples/third_party/dromaeo/Dromaeo.dart (revision 8828)
+++ samples/third_party/dromaeo/Dromaeo.dart (working copy)
@@ -32,8 +32,8 @@
final meanAsString = mean.toStringAsFixed(2);
final errorAsString = error.toStringAsFixed(2);
final Element progressDisplay = _element.nextNode.nextNode;
- progressDisplay.innerHTML +=
- '<li><b>${testName}:</b>' +
+ progressDisplay.innerHTML =
+ '${progressDisplay.innerHTML}<li><b>${testName}:</b>'
'${meanAsString}<small> runs/s &#177;${errorAsString}%<small></li>';
_updateTestPos(percent);
}
@@ -55,7 +55,7 @@
info = '<span>${mean} runs/s</span>';
}
_element.innerHTML =
- '<b>${suiteName}:</b>' +
+ '<b>${suiteName}:</b>'
'<div class="bar"><div style="width:${percent}%;">${info}</div></div>';
}
@@ -65,9 +65,9 @@
final description = _suiteDescription.description;
final originUrl = _suiteDescription.origin.url;
final testUrl = 'tests/${_suiteDescription.file}';
- div.innerHTML +=
- '<p>${description}<br/><a href="${originUrl}">Origin</a>' +
- ', <a href="${testUrl}">Source</a>' +
+ div.innerHTML =
+ '${div.innerHTML}<p>${description}<br/><a href="${originUrl}">Origin</a'
+ '>, <a href="${testUrl}">Source</a>'
'<ol class="results"></ol>';
// Reread the element, as the previous wrapper get disconnected thanks
// to .innerHTML update above.
« no previous file with comments | « no previous file | tools/testing/perf_testing/run_perf_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698