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

Unified Diff: tests/html/js_typed_interop_type_test.dart

Issue 2130333002: Update test and status file for jsinterop test. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 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 | « tests/compiler/dart2js/dart2js.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/js_typed_interop_type_test.dart
diff --git a/tests/html/js_typed_interop_type_test.dart b/tests/html/js_typed_interop_type_test.dart
index b8ba7d220d58d74e4d87962edabca0c7c7ab2d39..59266dc13ee51c90315810dbc0cd7ee3db70c164 100644
--- a/tests/html/js_typed_interop_type_test.dart
+++ b/tests/html/js_typed_interop_type_test.dart
@@ -1,17 +1,25 @@
+// 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.
+
+
+@JS()
+library js_typed_interop_type_test;
+
import 'dart:html';
import 'package:js/js.dart';
import 'package:expect/expect.dart';
@JS()
class A {
- get foo;
+ var foo;
external A(var foo);
}
@JS()
class B {
- get foo;
+ var foo;
external B(var foo);
}
@@ -94,7 +102,8 @@ function B(foo) {
void expectValueOrTypeError(f(), value) {
try {
- String i = 0; // Test for checked mode.
+ var i = 0;
+ String s = i; // Test for checked mode.
Expect.equals(f(), value);
} on TypeError catch (error) {
Expect.throws(f, (ex) => ex is TypeError);
« no previous file with comments | « tests/compiler/dart2js/dart2js.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698