Files
sdk/tests/lib_2/html/js_dispatch_property_test.dart
T
Terry Lucas 960fff771d Migrated Block 203 to Dart 2.0
R=bkonyi@google.com

Change-Id: I1f2769da1511570fa55e883a2997b8ceb4932217
Reviewed-on: https://dart-review.googlesource.com/11362
Commit-Queue: Terry Lucas <terry@google.com>
Reviewed-by: Bob Nystrom <rnystrom@google.com>
2017-10-07 15:34:17 +00:00

29 lines
741 B
Dart

// Copyright (c) 2016, 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.
// Test for dart2js initialization of dispatchPropertyName.
import 'package:unittest/unittest.dart';
import 'package:unittest/html_config.dart';
import 'package:expect/expect.dart' show NoInline, AssumeDynamic;
import 'js_dispatch_property_test_lib.dart';
@NoInline()
@AssumeDynamic()
confuse(x) => x;
main() {
useHtmlConfiguration();
group('group', () {
test('test', () {
// Force dynamic interceptor dispatch.
var a = confuse(create());
expect(a.foo('A'), equals('Foo A'));
});
});
}