| Index: test/perf/input/testing.js
|
| diff --git a/test/data/input/testing.js b/test/perf/input/testing.js
|
| similarity index 71%
|
| copy from test/data/input/testing.js
|
| copy to test/perf/input/testing.js
|
| index 8754efa498062fc174f4332ddb7199296d452e9c..9d73c8e65acde049be2acdb773531a870e9e9463 100644
|
| --- a/test/data/input/testing.js
|
| +++ b/test/perf/input/testing.js
|
| @@ -2,20 +2,14 @@
|
| // 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.
|
|
|
| -if (navigator.webkitStartDart) {
|
| - navigator.webkitStartDart();
|
| -}
|
| -
|
| if (window.layoutTestController) {
|
| + window.layoutTestController.dumpAsText();
|
| window.layoutTestController.waitUntilDone();
|
| }
|
|
|
| function messageHandler(e) {
|
| - if (e.data == 'done') {
|
| - // TODO(sigmund): use && in this condition, issue #41
|
| - if (window.layoutTestController) {
|
| - window.layoutTestController.notifyDone();
|
| - }
|
| + if (e.data == 'done' && window.layoutTestController) {
|
| + window.layoutTestController.notifyDone();
|
| }
|
| }
|
|
|
|
|