Files
sdk/tests/lib_2/html/xsltprocessor_test.dart
T
Bob Nystrom a53e4dd504 Finish migrating stuff out of lib_strong.
Some of these are data files that weren't picked up by the migration
script. Some are files that slipped between blocks of tests.

Change-Id: I184dc4701758b280444d54ec55c225ade30f3276
Reviewed-on: https://dart-review.googlesource.com/26423
Reviewed-by: Emily Fortuna <efortuna@google.com>
Commit-Queue: Bob Nystrom <rnystrom@google.com>
2017-12-11 23:45:23 +00:00

27 lines
598 B
Dart

import 'dart:html';
import 'package:expect/minitest.dart';
main() {
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);
});
});
}