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

Side by Side Diff: tests/dom/document_test.dart

Issue 10191033: test renaming overhaul: step 4 client tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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 | « tests/dom/dart_object_local_storage_test.dart ('k') | tests/dom/dom.status » ('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('DocumentTest'); 1 #library('DocumentTest');
2 #import('../../../../lib/unittest/unittest.dart'); 2 #import('../../lib/unittest/unittest.dart');
3 #import('../../../../lib/unittest/dom_config.dart'); 3 #import('../../lib/unittest/dom_config.dart');
4 #import('dart:dom'); 4 #import('dart:dom');
5 5
6 main() { 6 main() {
7 useDomConfiguration(); 7 useDomConfiguration();
8 8
9 test('CreateElement', () { 9 test('CreateElement', () {
10 // FIXME: nifty way crashes, do it boring way. 10 // FIXME: nifty way crashes, do it boring way.
11 Expect.isTrue(document.createElement('span') is HTMLElement); 11 Expect.isTrue(document.createElement('span') is HTMLElement);
12 Expect.isTrue(document.createElement('div') is HTMLDivElement); 12 Expect.isTrue(document.createElement('div') is HTMLDivElement);
13 Expect.isTrue(document.createElement('a') is HTMLAnchorElement); 13 Expect.isTrue(document.createElement('a') is HTMLAnchorElement);
14 Expect.isTrue(document.createElement('bad_name') is HTMLUnknownElement); 14 Expect.isTrue(document.createElement('bad_name') is HTMLUnknownElement);
15 }); 15 });
16 16
17 test('DocumentURL', () { 17 test('DocumentURL', () {
18 // URL is something like ..._client_dom_DocumentTest.dartfrogium.html 18 // URL is something like ..._client_dom_DocumentTest.dartfrogium.html
19 Expect.isTrue(document.URL.endsWith('.html')); 19 Expect.isTrue(document.URL.endsWith('.html'));
20 Expect.isTrue(document.URL.indexOf('DocumentTest') > 0); 20 Expect.isTrue(document.URL.indexOf('document_test') > 0);
21 }); 21 });
22 } 22 }
OLDNEW
« no previous file with comments | « tests/dom/dart_object_local_storage_test.dart ('k') | tests/dom/dom.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698