mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 12:48:10 +00:00
15c4d2e779
BUG=dartbug.com/20698 R=sigurdm@google.com Review URL: https://codereview.chromium.org//732533002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41794 260f80e4-7a28-3924-810f-c04153c831b5
17 lines
550 B
Dart
17 lines
550 B
Dart
// Copyright (c) 2014, 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.
|
|
|
|
library ScriptsTestDart;
|
|
import 'dart:html';
|
|
import 'dart:async';
|
|
|
|
main() {
|
|
window.postMessage('squid', '*');
|
|
window.postMessage('tiger', '*'); // Unexpected message OK.
|
|
new Timer(new Duration(seconds: 1), () {
|
|
window.postMessage('squid', '*'); // Duplicate message OK.
|
|
window.postMessage('sea urchin', '*');
|
|
});
|
|
}
|