| OLD | NEW |
| 1 library tests; | 1 library tests; |
| 2 | 2 |
| 3 import 'dart:html'; | 3 import 'dart:html'; |
| 4 import 'dart:json'; | |
| 5 | 4 |
| 6 import 'package:js/js.dart' as js; | 5 import 'package:js/js.dart' as js; |
| 7 import 'package:js/js_wrapping.dart' as jsw; | 6 import 'package:js/js_wrapping.dart' as jsw; |
| 8 import 'package:unittest/unittest.dart'; | 7 import 'package:unittest/unittest.dart'; |
| 9 import 'package:unittest/html_config.dart'; | 8 import 'package:unittest/html_config.dart'; |
| 10 | 9 |
| 11 abstract class _Person { | 10 abstract class _Person { |
| 12 String firstname; | 11 String firstname; |
| 13 | 12 |
| 14 String sayHello(); | 13 String sayHello(); |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 392 }); | 391 }); |
| 393 js.scoped((){ | 392 js.scoped((){ |
| 394 expect(() => john.sayHello(), returnsNormally); | 393 expect(() => john.sayHello(), returnsNormally); |
| 395 js.release(john); | 394 js.release(john); |
| 396 }); | 395 }); |
| 397 js.scoped((){ | 396 js.scoped((){ |
| 398 expect(() => john.sayHello(), throws); | 397 expect(() => john.sayHello(), throws); |
| 399 }); | 398 }); |
| 400 }); | 399 }); |
| 401 } | 400 } |
| OLD | NEW |