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

Unified Diff: test/parser_feature_test.dart

Issue 1971923002: Make package:html strong clean (Closed) Base URL: git@github.com:dart-lang/html.git@master
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/dom_test.dart ('k') | test/run_all.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/parser_feature_test.dart
diff --git a/test/parser_feature_test.dart b/test/parser_feature_test.dart
index 54d68a945845ac4d4d03f87f991fc5c713ad3d79..6d3af0ca785c5022a9e50ac1d1fe2199be0aefde 100644
--- a/test/parser_feature_test.dart
+++ b/test/parser_feature_test.dart
@@ -25,12 +25,12 @@ main() {
test('namespace html elements on', () {
var doc = new HtmlParser('', tree: new TreeBuilder(true)).parse();
- expect(doc.nodes[0].namespaceUri, Namespaces.html);
+ expect((doc.nodes[0] as Element).namespaceUri, Namespaces.html);
});
test('namespace html elements off', () {
var doc = new HtmlParser('', tree: new TreeBuilder(false)).parse();
- expect(doc.nodes[0].namespaceUri, null);
+ expect((doc.nodes[0] as Element).namespaceUri, null);
});
test('parse error spans - full', () {
@@ -290,7 +290,7 @@ On line 4, column 3 of ParseError: Unexpected DOCTYPE. Ignored.
expect(e.text, 'bar');
c.text = 'qux';
- expect(c.data, 'qux');
+ expect((c as Comment).data, 'qux');
expect(c.text, 'qux');
expect(e.text, 'bar');
});
@@ -310,7 +310,7 @@ On line 4, column 3 of ParseError: Unexpected DOCTYPE. Ignored.
});
group('Encoding pre-parser', () {
- getEncoding(s) => new EncodingParser(s.codeUnits).getEncoding();
+ getEncoding(String s) => new EncodingParser(s.codeUnits).getEncoding();
test('gets encoding from meta charset', () {
expect(getEncoding('<meta charset="utf-16">'), 'utf-16');
@@ -473,4 +473,4 @@ _testElementSpans() {
}
});
});
-}
+}
« no previous file with comments | « test/dom_test.dart ('k') | test/run_all.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698