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

Unified Diff: client/testing/unittest/test_controller.js

Issue 9802015: Move unittest into lib, and put it into the SDK. (Closed) Base URL: http://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 | « client/testing/unittest/shared.dart ('k') | client/testing/unittest/unittest_dom.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/testing/unittest/test_controller.js
===================================================================
--- client/testing/unittest/test_controller.js (revision 5951)
+++ client/testing/unittest/test_controller.js (working copy)
@@ -1,45 +0,0 @@
-// Copyright (c) 2011, 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.
-
-/**
- * Test controller logic - used by unit test harness to embed tests in
- * DumpRenderTree.
- */
-
-if (navigator.webkitStartDart) {
- navigator.webkitStartDart();
-}
-
-function processMessage(msg) {
- if (window.layoutTestController) {
- if (msg == 'unittest-suite-done') {
- window.layoutTestController.notifyDone();
- } else if (msg == 'unittest-suite-wait-for-done') {
- window.layoutTestController.startedDartTest = true;
- }
- }
-}
-
-function onReceive(e) {
- processMessage(e.data);
-}
-
-if (window.layoutTestController) {
- window.layoutTestController.dumpAsText();
- window.layoutTestController.waitUntilDone();
-}
-window.addEventListener("message", onReceive, false);
-
-function onLoad(e) {
- // needed for dartium compilation errors.
- if (window.compilationError) {
- var element = document.createElement('pre');
- element.innerHTML = window.compilationError;
- document.body.appendChild(element);
- window.layoutTestController.notifyDone();
- return;
- }
-}
-
-window.addEventListener("DOMContentLoaded", onLoad, false);
« no previous file with comments | « client/testing/unittest/shared.dart ('k') | client/testing/unittest/unittest_dom.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698