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

Unified Diff: lib/html/benchmarks/dromaeo/tests/DomTraverse.dart

Issue 9950103: Remove obsolete version of dromaeo (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
« no previous file with comments | « lib/html/benchmarks/dromaeo/tests/DomQuery.dart ('k') | lib/html/benchmarks/dromaeo/tests/Runner.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/benchmarks/dromaeo/tests/DomTraverse.dart
diff --git a/lib/html/benchmarks/dromaeo/tests/DomTraverse.dart b/lib/html/benchmarks/dromaeo/tests/DomTraverse.dart
deleted file mode 100644
index e77129095c28d47a9c92187873b0684c9a31ae17..0000000000000000000000000000000000000000
--- a/lib/html/benchmarks/dromaeo/tests/DomTraverse.dart
+++ /dev/null
@@ -1,84 +0,0 @@
-class Main {
- static void main() {
- final int num = 40;
-
- // Try to force real results.
- var ret;
- window.on.load.add((Event evt) {
- String html = document.body.innerHTML;
-
- new Suite('dom-traverse')
- .prep(() {
- html = BenchUtil.replaceAll(html, 'id="test(\\w).*?"', (Match match) {
- final group = match.group(1);
- return 'id="test${group}${num}"';
- });
- html = BenchUtil.replaceAll(html, 'name="test.*?"', (Match match) {
- return 'name="test${num}"';
- });
- html = BenchUtil.replaceAll(html, 'class="foo.*?"', (Match match) {
- return 'class="foo test${num} bar"';
- });
-
- final div = new Element.tag('div');
- div.innerHTML = html;
- document.body.nodes.add(div);
- })
- .test('firstChild', () {
- final nodes = document.body.nodes;
- final nl = nodes.length;
-
- for (int i = 0; i < num; i++) {
- for (int j = 0; j < nl; j++) {
- Node cur = nodes[j];
- while (cur !== null) {
- cur = cur.nodes.first;
- }
- ret = cur;
- }
- }
- })
- .test('lastChild', () {
- final nodes = document.body.nodes;
- final nl = nodes.length;
-
- for (int i = 0; i < num; i++) {
- for (int j = 0; j < nl; j++) {
- Node cur = nodes[j];
- while (cur !== null) {
- cur = cur.nodes.last();
- }
- ret = cur;
- }
- }
- })
- .test('nextSibling', () {
- for (int i = 0; i < num * 2; i++) {
- Node cur = document.body.nodes.first;
- while (cur !== null) {
- cur = cur.nextNode;
- }
- ret = cur;
- }
- })
- .test('previousSibling', () {
- for (int i = 0; i < num * 2; i++) {
- Node cur = document.body.nodes.first;
- while (cur !== null) {
- cur = cur.previousNode;
- }
- ret = cur;
- }
- })
- .test('childNodes', () {
- for (int i = 0; i < num; i++) {
- final nodes = document.body.nodes;
- for (int j = 0; j < nodes.length; j++) {
- ret = nodes[j];
- }
- }
- })
- .end();
- });
- }
-}
« no previous file with comments | « lib/html/benchmarks/dromaeo/tests/DomQuery.dart ('k') | lib/html/benchmarks/dromaeo/tests/Runner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698