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

Side by Side Diff: pkg/dev_compiler/test/codegen/lib/html/htmlcollection_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 import 'dart:html'; 1 import 'dart:html';
2 2
3 import 'package:minitest/minitest.dart'; 3 import 'package:expect/minitest.dart';
4 4
5 bool isChecked(Element e) => (e as CheckboxInputElement).checked; 5 bool isChecked(Element e) => (e as CheckboxInputElement).checked;
6 bool isUnchecked(Element e) => !(e as CheckboxInputElement).checked; 6 bool isUnchecked(Element e) => !(e as CheckboxInputElement).checked;
7 7
8 // Test that List<Element> implements List<T> 8 // Test that List<Element> implements List<T>
9 main() { 9 main() {
10 Element insertTestDiv() { 10 Element insertTestDiv() {
11 Element element = new Element.tag('div'); 11 Element element = new Element.tag('div');
12 element.innerHtml = r""" 12 element.innerHtml = r"""
13 <div id='allChecked'> 13 <div id='allChecked'>
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 expect(someChecked.lastIndexOf(someChecked[3], 2), -1); 268 expect(someChecked.lastIndexOf(someChecked[3], 2), -1);
269 269
270 expect(someChecked.lastIndexOf(noneChecked[0], 3), -1); 270 expect(someChecked.lastIndexOf(noneChecked[0], 3), -1);
271 expect(noneChecked.lastIndexOf(someChecked[0], 3), -1); 271 expect(noneChecked.lastIndexOf(someChecked[0], 3), -1);
272 expect(someChecked.lastIndexOf(noneChecked[1], 3), -1); 272 expect(someChecked.lastIndexOf(noneChecked[1], 3), -1);
273 expect(noneChecked.lastIndexOf(someChecked[1], 3), -1); 273 expect(noneChecked.lastIndexOf(someChecked[1], 3), -1);
274 274
275 root.remove(); 275 root.remove();
276 }); 276 });
277 } 277 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698