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

Side by Side Diff: pkg/dev_compiler/test/codegen/lib/html/element_add_test.dart

Issue 2416853003: Move minitest.dart into the expect package. (Closed)
Patch Set: Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file 3 // BSD-style license that can be found in the LICENSE file
4 4
5 import 'dart:html'; 5 import 'dart:html';
6 6
7 import 'package:minitest/minitest.dart'; 7 import 'package:expect/minitest.dart';
8 8
9 import 'util.dart'; 9 import 'util.dart';
10 10
11 main() { 11 main() {
12 var isSpanElement = predicate((x) => x is SpanElement, 'is a SpanElemt'); 12 var isSpanElement = predicate((x) => x is SpanElement, 'is a SpanElemt');
13 var isDivElement = predicate((x) => x is DivElement, 'is a DivElement'); 13 var isDivElement = predicate((x) => x is DivElement, 'is a DivElement');
14 var isText = predicate((x) => x is Text, 'is a Text'); 14 var isText = predicate((x) => x is Text, 'is a Text');
15 15
16 void expectNoSuchMethod(void fn()) => 16 void expectNoSuchMethod(void fn()) =>
17 expect(fn, throwsNoSuchMethodError); 17 expect(fn, throwsNoSuchMethodError);
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 var child = new DivElement(); 259 var child = new DivElement();
260 parent.children.add(child); 260 parent.children.add(child);
261 261
262 parent.insertAdjacentText('beforeend', 'test'); 262 parent.insertAdjacentText('beforeend', 'test');
263 263
264 expect(parent.nodes.length, 2); 264 expect(parent.nodes.length, 2);
265 expect(parent.nodes[1], isText); 265 expect(parent.nodes[1], isText);
266 }); 266 });
267 }); 267 });
268 } 268 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698