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

Side by Side Diff: tests/html/client_rect_test.dart

Issue 10952008: Take two of making FooList List<Foo>. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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
« no previous file with comments | « lib/html/idl/dart/dart.idl ('k') | tests/html/css_rule_list_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #library('ClientRectTest'); 1 #library('ClientRectTest');
2 #import('../../pkg/unittest/unittest.dart'); 2 #import('../../pkg/unittest/unittest.dart');
3 #import('../../pkg/unittest/html_config.dart'); 3 #import('../../pkg/unittest/html_config.dart');
4 #import('dart:html'); 4 #import('dart:html');
5 5
6 main() { 6 main() {
7 7
8 insertTestDiv() { 8 insertTestDiv() {
9 var element = new Element.tag('div'); 9 var element = new Element.tag('div');
10 element.innerHTML = @''' 10 element.innerHTML = @'''
11 A large block of text should go here. Click this 11 A large block of text should go here. Click this
12 block of text multiple times to see each line 12 block of text multiple times to see each line
13 highlight with every click of the mouse button. 13 highlight with every click of the mouse button.
14 '''; 14 ''';
15 document.body.nodes.add(element); 15 document.body.nodes.add(element);
16 return element; 16 return element;
17 } 17 }
18 18
19 useHtmlConfiguration(); 19 useHtmlConfiguration();
20 20
21 test("ClientRectList test", () { 21 test("ClientRectList test", () {
22 insertTestDiv(); 22 insertTestDiv();
23 var range = document.createRange(); 23 var range = document.createRange();
24 List<ClientRect> rects = range.getClientRects(); 24 List<ClientRect> rects = range.getClientRects();
25 Expect.isTrue(rects is List<ClientRect>); 25 Expect.isTrue(rects is List<ClientRect>);
26 }); 26 });
27 } 27 }
OLDNEW
« no previous file with comments | « lib/html/idl/dart/dart.idl ('k') | tests/html/css_rule_list_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698