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

Side by Side Diff: pkg/dev_compiler/test/codegen/lib/html/htmlelement_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 import 'utils.dart'; 5 import 'utils.dart';
6 6
7 main() { 7 main() {
8 test('InnerHTML', () { 8 test('InnerHTML', () {
9 Element element = new Element.tag('div'); 9 Element element = new Element.tag('div');
10 element.id = 'test'; 10 element.id = 'test';
11 element.innerHtml = 'Hello World'; 11 element.innerHtml = 'Hello World';
12 document.body.append(element); 12 document.body.append(element);
13 13
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 '<div id="dataDiv" data-my-message="Hello World"></div>', 92 '<div id="dataDiv" data-my-message="Hello World"></div>',
93 treeSanitizer: new NullTreeSanitizer()); 93 treeSanitizer: new NullTreeSanitizer());
94 expect(otherDiv.dataset.containsKey('myMessage'), isTrue); 94 expect(otherDiv.dataset.containsKey('myMessage'), isTrue);
95 95
96 Element anotherDiv = new Element.html( 96 Element anotherDiv = new Element.html(
97 '<div id="dataDiv" data-eggs="bacon"></div>', 97 '<div id="dataDiv" data-eggs="bacon"></div>',
98 treeSanitizer: new NullTreeSanitizer()); 98 treeSanitizer: new NullTreeSanitizer());
99 expect(anotherDiv.dataset.containsKey('eggs'), isTrue); 99 expect(anotherDiv.dataset.containsKey('eggs'), isTrue);
100 }); 100 });
101 } 101 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698