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

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

Issue 2419863002: Remove uses of unittest in the HTML tests where possible. (Closed)
Patch Set: Remove TODO. 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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 library ShadowDOMTest;
6 import 'package:unittest/unittest.dart';
7 import 'package:unittest/html_individual_config.dart';
8 import 'dart:html'; 5 import 'dart:html';
9 6
7 import 'package:expect/minitest.dart';
8
10 main() { 9 main() {
11 useHtmlIndividualConfiguration();
12
13 group('supported', () { 10 group('supported', () {
14 test('supported', () { 11 test('supported', () {
15 expect(ShadowRoot.supported, true); 12 expect(ShadowRoot.supported, true);
16 }); 13 });
17 }); 14 });
18 15
19 group('ShadowDOM_tests', () { 16 group('ShadowDOM_tests', () {
20
21 var div1, div2, shadowRoot, paragraph1, paragraph2; 17 var div1, div2, shadowRoot, paragraph1, paragraph2;
22 18
23 init() { 19 init() {
24 paragraph1 = new ParagraphElement(); 20 paragraph1 = new ParagraphElement();
25 paragraph2 = new ParagraphElement(); 21 paragraph2 = new ParagraphElement();
26 [paragraph1, paragraph2].forEach((p) { p.classes.add('foo');}); 22 [paragraph1, paragraph2].forEach((p) { p.classes.add('foo');});
27 div1 = new DivElement(); 23 div1 = new DivElement();
28 div2 = new DivElement(); 24 div2 = new DivElement();
29 div1.classes.add('foo'); 25 div1.classes.add('foo');
30 shadowRoot = div2.createShadowRoot(); 26 shadowRoot = div2.createShadowRoot();
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 82
87 var content2 = new ContentElement(); 83 var content2 = new ContentElement();
88 sRoot.append(content2); 84 sRoot.append(content2);
89 85
90 expect(content1.getDistributedNodes(), [box1]); 86 expect(content1.getDistributedNodes(), [box1]);
91 expect(content2.getDistributedNodes(), [box2]); 87 expect(content2.getDistributedNodes(), [box2]);
92 }); 88 });
93 } 89 }
94 }); 90 });
95 } 91 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698