OLD | NEW |
---|---|
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 library root_lib; | 5 window.postMessage('fish', '*'); |
6 | 6 |
7 export 'test_lib.dart'; | 7 function delayed() { |
8 export 'test_lib_foo.dart'; | 8 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
| |
9 export 'test_lib_bar.dart'; | 9 window.postMessage('crab', '*'); |
10 | |
11 class RootClass { | |
12 RootClass(int a, int b); | |
13 } | 10 } |
11 setTimeout(delayed, 500); | |
OLD | NEW |