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

Unified Diff: client/html/benchmarks/dromaeo/tests/DomModify.dart

Issue 8330003: Rename cloneNode to clone and move it into the Node interface. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Don't change the benchmark that uses the DOM interface. Created 9 years, 2 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 | client/html/release/html.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/html/benchmarks/dromaeo/tests/DomModify.dart
diff --git a/client/html/benchmarks/dromaeo/tests/DomModify.dart b/client/html/benchmarks/dromaeo/tests/DomModify.dart
index 3af942570f9f19dbb95c464a3d29579e0c430f01..b3e2637eaf6c5970a81958f1df69d1f9990ac700 100644
--- a/client/html/benchmarks/dromaeo/tests/DomModify.dart
+++ b/client/html/benchmarks/dromaeo/tests/DomModify.dart
@@ -44,13 +44,13 @@ class Main {
elems.add(telems[i]);
}
})
- .test('cloneNode', () {
+ .test('clone', () {
for (int i = 0; i < elems.length; i++) {
// not supported by Dart... this will intentionally throw an exception.
// TODO(jacobr): find the right solution.
- ret = elems[i].dynamic.cloneNode(false);
- ret = elems[i].dynamic.cloneNode(true);
- ret = elems[i].dynamic.cloneNode(true);
+ ret = elems[i].dynamic.clone(false);
+ ret = elems[i].dynamic.clone(true);
+ ret = elems[i].dynamic.clone(true);
}
})
.test('appendChild', () {
« no previous file with comments | « no previous file | client/html/release/html.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698