blob: 7b086f319435f5a75d2284133e509faf4be72eba [file] [log] [blame]
library ClientRectTest;
import 'package:unittest/unittest.dart';
import 'package:unittest/html_config.dart';
import 'dart:html';
main() {
var isRectList = predicate((x) => x is DomRectList, 'is a DomRectList');
insertTestDiv() {
var element = new Element.tag('div');
element.innerHtml = r'''
A large block of text should go here. Click this
block of text multiple times to see each line
highlight with every click of the mouse button.
return element;
test("ClientRectList test", () {
var range = new Range();
var rects = range.getClientRects();
expect(rects, isRectList);