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

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

Issue 10910301: Revert 12414. (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
(Empty)
1 #library('ClientRectTest');
2 #import('../../pkg/unittest/unittest.dart');
3 #import('../../pkg/unittest/html_config.dart');
4 #import('dart:html');
5
6 main() {
7
8 insertTestDiv() {
9 var element = new Element.tag('div');
10 element.innerHTML = @'''
11 A large block of text should go here. Click this
12 block of text multiple times to see each line
13 highlight with every click of the mouse button.
14 ''';
15 document.body.nodes.add(element);
16 return element;
17 }
18
19 useHtmlConfiguration();
20
21 test("ClientRectList test", () {
22 insertTestDiv();
23 var range = document.createRange();
24 List<ClientRect> rects = range.getClientRects();
25 Expect.isTrue(rects is List<ClientRect>);
26 });
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