| 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);
|
| }
|
|
|