OLD | NEW |
1 library NativeGCTest; | 1 library NativeGCTest; |
2 import '../../pkg/unittest/lib/unittest.dart'; | 2 import 'package:unittest/unittest.dart'; |
3 import '../../pkg/unittest/lib/html_config.dart'; | 3 import 'package:unittest/html_config.dart'; |
4 import 'dart:html'; | 4 import 'dart:html'; |
5 | 5 |
6 var testEvent = new EventStreamProvider<Event>('test'); | 6 var testEvent = new EventStreamProvider<Event>('test'); |
7 | 7 |
8 main() { | 8 main() { |
9 useHtmlConfiguration(); | 9 useHtmlConfiguration(); |
10 | 10 |
11 test('EventListener', () { | 11 test('EventListener', () { |
12 final int N = 1000000; | 12 final int N = 1000000; |
13 final int M = 1000; | 13 final int M = 1000; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 testDiv.onClick.listen(expectAsync((e) {})); | 50 testDiv.onClick.listen(expectAsync((e) {})); |
51 window.postMessage(message, '*'); | 51 window.postMessage(message, '*'); |
52 }); | 52 }); |
53 } | 53 } |
54 | 54 |
55 void triggerMajorGC() { | 55 void triggerMajorGC() { |
56 List list = new List(1000000); | 56 List list = new List(1000000); |
57 Element div = new DivElement(); | 57 Element div = new DivElement(); |
58 div.onClick.listen((e) => print(list[0])); | 58 div.onClick.listen((e) => print(list[0])); |
59 } | 59 } |
OLD | NEW |