5bc653278a
BUG= Review URL: https://codereview.chromium.org//11419300 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15739 260f80e4-7a28-3924-810f-c04153c831b5
19 lines
437 B
Dart
19 lines
437 B
Dart
library CssRuleListTest;
|
|
import '../../pkg/unittest/lib/unittest.dart';
|
|
import '../../pkg/unittest/lib/html_config.dart';
|
|
import 'dart:html';
|
|
|
|
main() {
|
|
|
|
var isCssRuleList =
|
|
predicate((x) => x is List<CssRule>, 'is a List<CssRule>');
|
|
|
|
useHtmlConfiguration();
|
|
|
|
test("ClientRectList test", () {
|
|
var sheet = document.styleSheets[0];
|
|
List<CssRule> rulesList = sheet.cssRules;
|
|
expect(rulesList, isCssRuleList);
|
|
});
|
|
}
|