064342cc5b
R=vsm@google.com Review URL: https://chromiumcodereview.appspot.com//10178014 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7124 260f80e4-7a28-3924-810f-c04153c831b5
17 lines
502 B
Dart
17 lines
502 B
Dart
#library('DocumentTest');
|
|
#import('../../lib/unittest/unittest.dart');
|
|
#import('../../lib/unittest/html_config.dart');
|
|
#import('dart:html');
|
|
|
|
main() {
|
|
useHtmlConfiguration();
|
|
|
|
test('CreateElement', () {
|
|
// FIXME: nifty way crashes, do it boring way.
|
|
Expect.isTrue(new Element.tag('span') is Element);
|
|
Expect.isTrue(new Element.tag('div') is DivElement);
|
|
Expect.isTrue(new Element.tag('a') is AnchorElement);
|
|
Expect.isTrue(new Element.tag('bad_name') is UnknownElement);
|
|
});
|
|
}
|