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

Unified Diff: tests/html/dromaeo_smoke_test.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
« no previous file with comments | « tests/html/dromaeo_smoke-html.html ('k') | tests/html/html.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/dromaeo_smoke_test.dart
diff --git a/tests/html/dromaeo_smoke_test.dart b/tests/html/dromaeo_smoke_test.dart
deleted file mode 100644
index 2f71f9b63c5086fe128d5eca6624c3e3e8312fec..0000000000000000000000000000000000000000
--- a/tests/html/dromaeo_smoke_test.dart
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-library dromaeo;
-import 'package:unittest/unittest.dart';
-import 'package:unittest/html_config.dart';
-import '../../samples/third_party/dromaeo/web/Dromaeo.dart' as originalTest;
-import 'dart:html';
-import 'dart:async';
-
-/** A variant of the Dromaeo test shoehorned into a unit test. */
-void main() {
- var combo = '?dartANDhtmlANDnothing';
- if (!window.location.search.toString().contains(combo)) {
- if (window.location.href.toString().indexOf("?") == -1) {
- window.location.href = '${window.location.href}${combo}';
- } else {
- window.location.href = '${window.location.href.toString().substring(0,
- window.location.href.toString().indexOf("?"))}${combo}';
- }
- }
-
- useHtmlConfiguration();
-
- var scriptSrc = new ScriptElement();
- scriptSrc.src = '/root_dart/pkg/browser/lib/dart.js';
- document.head.children.add(scriptSrc);
- document.body.innerHtml = '''${document.body.innerHtml}
- <div id="main">
- <h1 id="overview" class="test"><span>Performance Tests</span>
- <input type="button" id="pause" class="pause" value="Loading..."/>
- <div class="bar">
- <div id="timebar" style="width:25%;">
- <span class="left">Est.&nbsp;Time:&nbsp;<strong id="left">0:00</strong>
- </span>
- </div>
- </div>
- <ul id="tests">
- <li><a href="?dom">Smoke Tests</a></li>
- </ul>
- </div>''';
-
- bool isDone = false;
- originalTest.main();
-
- test('dromaeo runs', () {
- new Timer.periodic(new Duration(milliseconds: 500),
- expectAsyncUntil((timer) {
- if (document.query('.alldone') != null) {
- timer.cancel();
- isDone = true;
- }
- }, () => isDone));
- });
-}
« no previous file with comments | « tests/html/dromaeo_smoke-html.html ('k') | tests/html/html.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698