Fix Queue's iterator to allocate an iterator using type parameter. Enable now passing tests.

Review URL: https://codereview.chromium.org//19857010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25417 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
srdjan@google.com 2013-07-24 15:18:11 +00:00
parent ff2827c26f
commit 4d0774a448
4 changed files with 1 additions and 4 deletions

View file

@ -387,7 +387,7 @@ class ListQueue<E> extends IterableBase<E> implements Queue<E> {
// Iterable interface.
Iterator<E> get iterator => new _ListQueueIterator(this);
Iterator<E> get iterator => new _ListQueueIterator<E>(this);
void forEach(void action (E element)) {
int modificationCount = _modificationCount;

View file

@ -62,7 +62,6 @@ LibTest/async/Future/whenComplete_A02_t01: Fail # TODO(dart2dart-team): Please t
LibTest/async/Future/whenComplete_A03_t01: Fail # TODO(dart2dart-team): Please triage this failure.
LibTest/async/Future/whenComplete_A04_t01: Fail # TODO(dart2dart-team): Please triage this failure.
LibTest/async/Future/whenComplete_A04_t02: Fail # TODO(dart2dart-team): Please triage this failure.
LibTest/collection/Queue/iterator_A01_t01: Fail # TODO(dart2dart-team): Please triage this failure.
LibTest/collection/Queue/iterator_current_A01_t02: Fail # TODO(dart2dart-team): Please triage this failure.
LibTest/collection/Queue/iterator_moveNext_A01_t02: Fail # TODO(dart2dart-team): Please triage this failure.
LibTest/core/List/List_A01_t02: Fail # TODO(dart2dart-team): Please triage this failure.

View file

@ -124,7 +124,6 @@ LibTest/async/Future/whenComplete_A02_t01: Fail # TODO(ahe): Please triage this
LibTest/async/Future/whenComplete_A03_t01: Fail # TODO(ahe): Please triage this failure.
LibTest/async/Future/whenComplete_A04_t01: Fail # TODO(ahe): Please triage this failure.
LibTest/async/Future/whenComplete_A04_t02: Fail # TODO(ahe): Please triage this failure.
LibTest/collection/Queue/iterator_A01_t01: Fail # TODO(ahe): Please triage this failure.
LibTest/collection/Queue/iterator_current_A01_t02: Fail # TODO(ahe): Please triage this failure.
LibTest/collection/Queue/iterator_moveNext_A01_t02: Fail # TODO(ahe): Please triage this failure.
LibTest/core/List/List_A01_t02: Fail # TODO(ahe): Please triage this failure.

View file

@ -68,7 +68,6 @@ LibTest/async/Future/whenComplete_A02_t01: Fail # TODO(vm-team): Please triage t
LibTest/async/Future/whenComplete_A03_t01: Fail # TODO(vm-team): Please triage this failure.
LibTest/async/Future/whenComplete_A04_t01: Fail # TODO(vm-team): Please triage this failure.
LibTest/async/Future/whenComplete_A04_t02: Fail # TODO(vm-team): Please triage this failure.
LibTest/collection/Queue/iterator_A01_t01: Fail # TODO(vm-team): Please triage this failure.
LibTest/collection/Queue/iterator_current_A01_t02: Fail # TODO(vm-team): Please triage this failure.
LibTest/collection/Queue/iterator_moveNext_A01_t02: Fail # TODO(vm-team): Please triage this failure.
LibTest/core/List/List_A01_t02: Fail # TODO(vm-team): Please triage this failure.