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

Unified Diff: client/dom/benchmarks/dromaeo/tests/dom-modify.dart

Issue 9374026: Move dromaeo to third_party (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Moved Dromaeo to third party. Created 8 years, 10 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: client/dom/benchmarks/dromaeo/tests/dom-modify.dart
diff --git a/client/dom/benchmarks/dromaeo/tests/dom-modify.dart b/client/dom/benchmarks/dromaeo/tests/dom-modify.dart
deleted file mode 100644
index f27235b809979a14336a2ef443d26ee59acb4516..0000000000000000000000000000000000000000
--- a/client/dom/benchmarks/dromaeo/tests/dom-modify.dart
+++ /dev/null
@@ -1,66 +0,0 @@
-#library("dom-modify.dart");
-#import("dart:dom");
-#import('runner.dart');
-
-void main() {
- final int num = 400;
-
- String str = 'null';
- // Very ugly way to build up the string, but let's mimic JS version as much as possible.
- for (int i = 0; i < 1024; i++) {
- str += new String.fromCharCodes([((25 * Math.random()) + 97).toInt()]);
- }
-
- List<Node> elems = new List<Node>();
-
- // Try to force real results.
- var ret;
-
- final htmlstr = document.body.innerHTML;
-
- new Suite(window, 'dom-modify')
- .test('createElement', () {
- for (int i = 0; i < num; i++) {
- ret = document.createElement('div');
- ret = document.createElement('span');
- ret = document.createElement('table');
- ret = document.createElement('tr');
- ret = document.createElement('select');
- }
- })
- .test('createTextNode', () {
- for (int i = 0; i < num; i++) {
- ret = document.createTextNode(str);
- ret = document.createTextNode(str + '2');
- ret = document.createTextNode(str + '3');
- ret = document.createTextNode(str + '4');
- ret = document.createTextNode(str + '5');
- }
- })
- .test('innerHTML', () {
- document.body.innerHTML = htmlstr;
- })
- .prep(() {
- elems = new List<Node>();
- final telems = document.body.childNodes;
- for (int i = 0; i < telems.length; i++) {
- elems.add(telems[i]);
- }
- })
- .test('cloneNode', () {
- for (int i = 0; i < elems.length; i++) {
- ret = elems[i].cloneNode(false);
- ret = elems[i].cloneNode(true);
- ret = elems[i].cloneNode(true);
- }
- })
- .test('appendChild', () {
- for (int i = 0; i < elems.length; i++)
- document.body.appendChild(elems[i]);
- })
- .test('insertBefore', () {
- for (int i = 0; i < elems.length; i++)
- document.body.insertBefore(elems[i], document.body.firstChild);
- })
- .end();
-}
« no previous file with comments | « client/dom/benchmarks/dromaeo/tests/dom-attr-dartc.html ('k') | client/dom/benchmarks/dromaeo/tests/dom-modify.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698