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

Side by Side Diff: client/tests/client/dom/NativeGCTest.dart

Issue 9537001: Generate dart:html bindings for Dartium as well as Frog. All unittests now pass (or are disabled fo… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #library('NativeGCTest'); 1 #library('NativeGCTest');
2 #import('../../../testing/unittest/unittest.dart'); 2 #import('../../../testing/unittest/unittest_dom.dart');
3 #import('dart:dom'); 3 #import('dart:dom');
4 4
5 main() { 5 main() {
6 6
7 test('EventListener', () { 7 test('EventListener', () {
8 final int N = 1000000; 8 final int N = 1000000;
9 final int M = 1000; 9 final int M = 1000;
10 10
11 var div; 11 var div;
12 for (int i = 0; i < M; ++i) { 12 for (int i = 0; i < M; ++i) {
(...skipping 10 matching lines...) Expand all
23 // Note: the reference to l keeps the entire list alive. 23 // Note: the reference to l keeps the entire list alive.
24 Expect.equals(M - 1, l[N - 1]); 24 Expect.equals(M - 1, l[N - 1]);
25 }, false); 25 }, false);
26 } 26 }
27 27
28 final event = document.createEvent('Event'); 28 final event = document.createEvent('Event');
29 event.initEvent('test', true, false); 29 event.initEvent('test', true, false);
30 div.dispatchEvent(event); 30 div.dispatchEvent(event);
31 }); 31 });
32 } 32 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698