Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(647)

Unified Diff: tests/html/js_function_getter_trust_types_test.dart

Issue 1985193002: Revert "TBR. I am not sure this test should have ever passed." (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/js_function_getter_trust_types_test.dart
diff --git a/tests/html/js_function_getter_trust_types_test.dart b/tests/html/js_function_getter_trust_types_test.dart
index cc0fec19078cc9c1a93ae27096e3d27fc5c8c716..3e94b503a46fc3092ef481f3d707ac0856098ea0 100644
--- a/tests/html/js_function_getter_trust_types_test.dart
+++ b/tests/html/js_function_getter_trust_types_test.dart
@@ -56,6 +56,13 @@ main() {
useHtmlIndividualConfiguration();
group('trust types', () {
+ test('static nonFunctionStatic', () {
+ expect(() => foo.bar.nonFunctionStatic(), throws);
+ expect(() => foo.bar.nonFunctionStatic(0), throws);
+ expect(() => foo.bar.nonFunctionStatic(0,0), throws);
+ expect(() => foo.bar.nonFunctionStatic(0,0,0,0,0,0), throws);
+ });
+
test('typedef function', () {
expect(() => foo.bar.add(4), throws);
expect(() => foo.bar.add(4,5,10), throws);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698