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

Unified Diff: tests/corelib/queue_last_test.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 | « tests/corelib/queue_iterator_test.dart ('k') | tests/corelib/queue_single_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/queue_last_test.dart
diff --git a/samples/hi/hi.dart b/tests/corelib/queue_last_test.dart
similarity index 51%
copy from samples/hi/hi.dart
copy to tests/corelib/queue_last_test.dart
index 2ce0f41f920cf65027111390b2f071231db16638..39983ba28dda75e0f31a29c99fad944b46dbd22a 100644
--- a/samples/hi/hi.dart
+++ b/tests/corelib/queue_last_test.dart
@@ -2,10 +2,13 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-library hi;
-
-import 'dart:html';
-
main() {
- query('#status').text = 'Hi, Dart';
+ Queue<int> queue1 = new Queue<int>();
+ queue1..add(11)
+ ..add(12)
+ ..add(13);
+ Queue queue2 = new Queue();
+
+ Expect.equals(13, queue1.last);
+ Expect.throws(() => queue2.last, (e) => e is StateError);
}
« no previous file with comments | « tests/corelib/queue_iterator_test.dart ('k') | tests/corelib/queue_single_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698