Index: tests/corelib/queue_first_test.dart |
diff --git a/samples/hi/hi.dart b/tests/corelib/queue_first_test.dart |
similarity index 51% |
copy from samples/hi/hi.dart |
copy to tests/corelib/queue_first_test.dart |
index 2ce0f41f920cf65027111390b2f071231db16638..209d5918de2b4a64a49ef95a503e00024697375f 100644 |
--- a/samples/hi/hi.dart |
+++ b/tests/corelib/queue_first_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(11, queue1.first); |
+ Expect.throws(() => queue2.first, (e) => e is StateError); |
} |