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

Unified Diff: samples/third_party/dromaeo/web/tests/dom-traverse-html.dart

Issue 1576153002: Remove the Dromaeo and TodoMVC samples. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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/web/tests/dom-traverse-html.dart
diff --git a/samples/third_party/dromaeo/web/tests/dom-traverse-html.dart b/samples/third_party/dromaeo/web/tests/dom-traverse-html.dart
deleted file mode 100644
index 19fb3e5e9077b86c74725c808483454f8bd47343..0000000000000000000000000000000000000000
--- a/samples/third_party/dromaeo/web/tests/dom-traverse-html.dart
+++ /dev/null
@@ -1,91 +0,0 @@
-library dromaeo;
-import 'dart:async';
-import 'dart:html';
-import "dart:convert";
-import '../common/common.dart';
-import 'dart:math' as Math;
-part 'Common.dart';
-part 'RunnerSuite.dart';
-
-
-void main() {
- final int num = 40;
-
- // Try to force real results.
- var ret;
-
- String html = document.body.innerHtml;
-
- new Suite(window, '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.append(div);
- })
- .test('firstChild', () {
- final nodes = document.body.childNodes;
- 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.firstChild;
- }
- ret = cur;
- }
- }
- })
- .test('lastChild', () {
- final nodes = document.body.childNodes;
- 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.lastChild;
- }
- ret = cur;
- }
- }
- })
- .test('nextSibling', () {
- for (int i = 0; i < num * 2; i++) {
- Node cur = document.body.firstChild;
- while (cur != null) {
- cur = cur.nextNode;
- }
- ret = cur;
- }
- })
- .test('previousSibling', () {
- for (int i = 0; i < num * 2; i++) {
- Node cur = document.body.lastChild;
- while (cur != null) {
- cur = cur.previousNode;
- }
- ret = cur;
- }
- })
- .test('childNodes', () {
- for (int i = 0; i < num; i++) {
- final nodes = document.body.childNodes;
- for (int j = 0; j < nodes.length; j++) {
- ret = nodes[j];
- }
- }
- })
- .end();
-}
« no previous file with comments | « samples/third_party/dromaeo/web/tests/dom-traverse.html ('k') | samples/third_party/dromaeo/web/tests/dom-traverse-html.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698