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

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

Issue 11301046: Restructure pkg/unittest and pkg/webdriver to follow the pub conventions. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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 | « tests/html/htmlcollection_test.dart ('k') | tests/html/htmloptionscollection_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('ElementTest'); 1 library ElementTest;
2 #import('../../pkg/unittest/unittest.dart'); 2 import '../../pkg/unittest/lib/unittest.dart';
3 #import('../../pkg/unittest/html_config.dart'); 3 import '../../pkg/unittest/lib/html_config.dart';
4 #import('dart:html'); 4 import 'dart:html';
5 5
6 main() { 6 main() {
7 useHtmlConfiguration(); 7 useHtmlConfiguration();
8 test('InnerHTML', () { 8 test('InnerHTML', () {
9 Element element = new Element.tag('div'); 9 Element element = new Element.tag('div');
10 element.id = 'test'; 10 element.id = 'test';
11 element.innerHTML = 'Hello World'; 11 element.innerHTML = 'Hello World';
12 document.body.nodes.add(element); 12 document.body.nodes.add(element);
13 13
14 element = document.query('#test'); 14 element = document.query('#test');
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 expect(div.dataAttributes.remove('foo'), 'foo-value'); 83 expect(div.dataAttributes.remove('foo'), 'foo-value');
84 expect(div.dataAttributes.length, 1); 84 expect(div.dataAttributes.length, 1);
85 expect(div.dataAttributes.isEmpty, isFalse); 85 expect(div.dataAttributes.isEmpty, isFalse);
86 86
87 div.dataAttributes.clear(); 87 div.dataAttributes.clear();
88 expect(div.dataAttributes.length, 0); 88 expect(div.dataAttributes.length, 0);
89 expect(div.dataAttributes.isEmpty, isTrue); 89 expect(div.dataAttributes.isEmpty, isTrue);
90 }); 90 });
91 } 91 }
OLDNEW
« no previous file with comments | « tests/html/htmlcollection_test.dart ('k') | tests/html/htmloptionscollection_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698