Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(100)

Unified Diff: client/tests/client/dom/TypingTest.dart

Issue 9429028: Make dom/DocumentTest work again (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: x Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/tests/client/dom/DocumentTest.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/tests/client/dom/TypingTest.dart
diff --git a/client/tests/client/dom/TypingTest.dart b/client/tests/client/dom/TypingTest.dart
index 7545456c3fbf7100bcedeb975dc07ff1b5847c2a..e6338b86a0f489a5186bdc544d0245e3f325441f 100644
--- a/client/tests/client/dom/TypingTest.dart
+++ b/client/tests/client/dom/TypingTest.dart
@@ -4,6 +4,7 @@
main() {
forLayoutTests();
+
test('NodeList', () {
List<Node> asList = window.document.getElementsByTagName('body');
// Check it's Iterable
@@ -16,6 +17,7 @@ main() {
window.document.getElementsByTagName('body').forEach((e) { counter++; });
Expect.equals(1, counter);
});
+
test('StyleSheetList', () {
List<StyleSheet> asList = window.document.styleSheets;
// Check it's Iterable.
@@ -23,6 +25,8 @@ main() {
for (StyleSheet styleSheet in window.document.styleSheets) {
counter++;
}
- Expect.equals(0, counter);
+
+ // There is one style sheet from the unittest framework.
+ Expect.equals(1, counter);
});
}
« no previous file with comments | « client/tests/client/dom/DocumentTest.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698