mirror of
https://github.com/dart-lang/sdk
synced 2024-09-06 00:59:09 +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
19 lines
425 B
Dart
19 lines
425 B
Dart
library CssRuleListTest;
|
|
import 'package:unittest/unittest.dart';
|
|
import 'package:unittest/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);
|
|
});
|
|
}
|