mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 13:08:10 +00:00
4283c3e41e
R=sigmund@google.com Review URL: https://codereview.chromium.org//231413003 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34890 260f80e4-7a28-3924-810f-c04153c831b5
32 lines
718 B
Dart
32 lines
718 B
Dart
library XSLTProcessorTest;
|
|
import 'package:unittest/unittest.dart';
|
|
import 'package:unittest/html_individual_config.dart';
|
|
import 'dart:html';
|
|
|
|
main() {
|
|
|
|
useHtmlIndividualConfiguration();
|
|
|
|
group('supported', () {
|
|
test('supported', () {
|
|
expect(XsltProcessor.supported, true);
|
|
});
|
|
});
|
|
|
|
group('functional', () {
|
|
var isXsltProcessor =
|
|
predicate((x) => x is XsltProcessor, 'is an XsltProcessor');
|
|
|
|
var expectation = XsltProcessor.supported ? returnsNormally : throws;
|
|
|
|
test('constructorTest', () {
|
|
expect(() {
|
|
var processor = new XsltProcessor();
|
|
expect(processor, isNotNull);
|
|
expect(processor, isXsltProcessor);
|
|
}, expectation);
|
|
});
|
|
});
|
|
|
|
}
|