| Index: LayoutTests/dart/inspector/merged-callstack.dart
|
| diff --git a/LayoutTests/dart/inspector/merged-callstack.dart b/LayoutTests/dart/inspector/merged-callstack.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5376fc476457042c75d55876231b2acef935b813
|
| --- /dev/null
|
| +++ b/LayoutTests/dart/inspector/merged-callstack.dart
|
| @@ -0,0 +1,27 @@
|
| +library merged_callstack_test;
|
| +
|
| +import 'dart:core' as core; // import with prefix so global dart:core fields don't appear in scope chain.
|
| +import 'dart:html' as html; // import with prefix so global dart:html fields don't appear in scope chain.
|
| +import 'dart:js' as js; // import with prefix so global dart:js fields don't apppear in scope chain.
|
| +
|
| +main() {
|
| + html.window.onMessage.listen(handleMessage);
|
| +}
|
| +
|
| +handleMessage(event) {
|
| + if (event.data == 'fromJS') {
|
| + bounceDart(10);
|
| + }
|
| +}
|
| +
|
| +bounceHelperDart(core.int count) {
|
| + js.context.callMethod("bounce", [count-1, bounceDart]);
|
| +}
|
| +
|
| +bounceDart(core.int count) {
|
| + if (count > 0) {
|
| + core.Function.apply(bounceHelperDart, [count]);
|
| + } else {
|
| + html.window.postMessage('fromDart', '*');
|
| + }
|
| +}
|
|
|