blob: 01739fd1c5a84e6926d8894d6b4f953ab868f342 [file] [log] [blame]
import 'dart:html';
import 'package:expect/minitest.dart';
main() {
group('supported', () {
test('supports_createContextualFragment', () {
expect(Range.supportsCreateContextualFragment, isTrue);
});
});
group('functional', () {
test('supported works', () {
var range = new Range();
range.selectNode(document.body);
var expectation = Range.supportsCreateContextualFragment ?
returnsNormally : throws;
expect(() {
range.createContextualFragment('<div></div>');
}, expectation);
});
});
}