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

Unified Diff: tests/html/node_test.dart

Issue 12513010: Fixing Node.nodes.first. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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 | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | tools/dom/templates/html/impl/impl_Node.darttemplate » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/node_test.dart
diff --git a/tests/html/node_test.dart b/tests/html/node_test.dart
index e56403dcdf50eb438d6c1df02ddb04ec02011bb7..0e0542c6f98fb6bc5fd83506d03de409950adf51 100644
--- a/tests/html/node_test.dart
+++ b/tests/html/node_test.dart
@@ -106,6 +106,11 @@ main() {
test('first', () {
var node = makeNodeWithChildren();
expect(node.nodes.first, isText);
+
+ node = new DivElement();
+ expect(() {
+ node = node.nodes.first;
+ }, throwsStateError);
});
test('last', () {
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | tools/dom/templates/html/impl/impl_Node.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698