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

Side by Side Diff: pkg/dev_compiler/test/codegen/lib/html/element_offset_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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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:async'; 5 import 'dart:async';
6 import 'dart:html'; 6 import 'dart:html';
7 7
8 import 'package:minitest/minitest.dart'; 8 import 'package:expect/minitest.dart';
9 9
10 main() { 10 main() {
11 void initPage() { 11 void initPage() {
12 var level1 = new UListElement() 12 var level1 = new UListElement()
13 ..classes.add('level-1') 13 ..classes.add('level-1')
14 ..children.add(new LIElement()..innerHtml = 'I'); 14 ..children.add(new LIElement()..innerHtml = 'I');
15 var itemii = new LIElement() 15 var itemii = new LIElement()
16 ..classes.add('item-ii') 16 ..classes.add('item-ii')
17 ..style.position = 'relative' 17 ..style.position = 'relative'
18 ..style.top = '4px' 18 ..style.top = '4px'
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 expect(baz.documentOffset.y, 608); 128 expect(baz.documentOffset.y, 608);
129 129
130 expect(qux.documentOffset.x, 8); 130 expect(qux.documentOffset.x, 8);
131 expect(qux.documentOffset.y, inInclusiveRange(203, 240)); 131 expect(qux.documentOffset.y, inInclusiveRange(203, 240));
132 132
133 expect(quux.documentOffset.x, 8); 133 expect(quux.documentOffset.x, 8);
134 expect(quux.documentOffset.y, inInclusiveRange(203, 240)); 134 expect(quux.documentOffset.y, inInclusiveRange(203, 240));
135 }); 135 });
136 }); 136 });
137 } 137 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698