Chromium Code Reviews| Index: tests/html/scripts_test_js.js |
| diff --git a/pkg/docgen/test/multi_library_code/lib/root_lib.dart b/tests/html/scripts_test_js.js |
| similarity index 55% |
| copy from pkg/docgen/test/multi_library_code/lib/root_lib.dart |
| copy to tests/html/scripts_test_js.js |
| index 74423abfeba22b68b7561d308758df0fdd7d9e60..a495473707475333fe91c8e9633bfcde18daf6e4 100644 |
| --- a/pkg/docgen/test/multi_library_code/lib/root_lib.dart |
| +++ b/tests/html/scripts_test_js.js |
| @@ -2,12 +2,10 @@ |
| // 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 root_lib; |
| +window.postMessage('fish', '*'); |
| -export 'test_lib.dart'; |
| -export 'test_lib_foo.dart'; |
| -export 'test_lib_bar.dart'; |
| - |
| -class RootClass { |
| - RootClass(int a, int b); |
| +function delayed() { |
| + parent.postMessage('cow', '*'); // Unexpected message OK. |
|
ricow1
2014/11/05 10:59:54
why parent here and not window?
Bill Hesse
2014/11/05 12:51:51
WE want to test that sending to parent does not br
|
| + window.postMessage('crab', '*'); |
| } |
| +setTimeout(delayed, 500); |