@@ -259,7 +259,7 @@ void main() {
259259 stringQueue.addAll (['c' , 'd' ]);
260260 expect (
261261 stringQueue,
262- const isInstanceOf <QueueList <String >>(),
262+ const TypeMatcher <QueueList <String >>(),
263263 reason: 'Expected QueueList<String>, got ${stringQueue .runtimeType }' ,
264264 skip: isDart2 ? false : 'Cast does nothing in Dart1' ,
265265 );
@@ -278,7 +278,7 @@ void main() {
278278 var numQueue = stringQueue.cast <num >();
279279 expect (
280280 numQueue,
281- const isInstanceOf <QueueList <num >>(),
281+ const TypeMatcher <QueueList <num >>(),
282282 reason: 'Expected QueueList<num>, got ${numQueue .runtimeType }' ,
283283 skip: isDart2 ? false : 'Cast does nothing in Dart1' ,
284284 );
@@ -318,4 +318,4 @@ QueueList withInternalGap() {
318318/// Returns a matcher that expects that a closure throws a
319319/// [ConcurrentModificationError] .
320320final throwsConcurrentModificationError =
321- throwsA (new isInstanceOf <ConcurrentModificationError >());
321+ throwsA (new TypeMatcher <ConcurrentModificationError >());
0 commit comments