Chromium Code Reviews| Index: pkg/polymer/lib/testing/test_controller.js |
| diff --git a/pkg/unittest/lib/test_controller.js b/pkg/polymer/lib/testing/test_controller.js |
| similarity index 96% |
| copy from pkg/unittest/lib/test_controller.js |
| copy to pkg/polymer/lib/testing/test_controller.js |
| index 439b7033aea8b4d4a097ec61f907ad8848ba0cc4..aa4a5fcba4ba316bc031abbcd2313e84cba42510 100644 |
| --- a/pkg/unittest/lib/test_controller.js |
| +++ b/pkg/polymer/lib/testing/test_controller.js |
| @@ -1,10 +1,13 @@ |
| -// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| +// 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. |
| /** |
| * Test controller logic - used by unit test harness to embed tests in |
| * conent shell. |
| + * |
| + * *NOTE*: this is a fork of package:unittest/test_controller.js. |
| + * It has been modified to work with package:polymer/boot.js. |
|
kustermann
2013/08/28 17:56:45
This is really bad. We should not fork!
It's reall
Jennifer Messerly
2013/08/28 18:11:06
agreed, we already have a copy in polymer/lib/test
Siggi Cherem (dart-lang)
2013/08/28 18:21:10
I was also thinking of the same approach =)
|
| */ |
| // Clear the console before every test run - this is Firebug specific code. |
| @@ -23,10 +26,6 @@ window.onerror = function (message, url, lineNumber) { |
| window.postMessage('unittest-suite-external-error', '*'); |
| }; |
| -if (navigator.webkitStartDart) { |
| - navigator.webkitStartDart(); |
| -} |
|
kustermann
2013/08/28 17:56:45
Why did you remove this?
This is needed for darti
Jennifer Messerly
2013/08/28 18:11:06
Polymer's "boot.js" knows how to start Dartium. Th
|
| - |
| // testRunner is provided by content shell. |
| // It is not available in selenium tests. |
| var testRunner = window.testRunner || window.layoutTestController; |