204651f3ab
Change-Id: Ib43d0d71a3ee8b0f0e6d676e6a3e448a107b7ca5 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/95180 Commit-Queue: Johnni Winther <johnniwinther@google.com> Reviewed-by: Stephen Adams <sra@google.com>
29 lines
773 B
Dart
29 lines
773 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';
|
|
|
|
@pragma('dart2js:noInline')
|
|
@pragma('dart2js: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'));
|
|
});
|
|
});
|
|
}
|