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

Unified Diff: packages/html/test/parser_feature_test.dart

Issue 2990843002: Removed fixed dependencies (Closed)
Patch Set: Created 3 years, 5 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 | « packages/html/test/dom_test.dart ('k') | packages/html/test/run_all.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/html/test/parser_feature_test.dart
diff --git a/packages/html/test/parser_feature_test.dart b/packages/html/test/parser_feature_test.dart
index 54d68a945845ac4d4d03f87f991fc5c713ad3d79..43a34266fbe7e932f21f94d11c187524786bd222 100644
--- a/packages/html/test/parser_feature_test.dart
+++ b/packages/html/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', () {
@@ -251,7 +251,7 @@ On line 4, column 3 of ParseError: Unexpected DOCTYPE. Ignored.
'ParserError on line 1, column 4: Unexpected non-space characters. '
'Expected DOCTYPE.\n'
'foo\n'
- ' ^');
+ ' ^');
});
test('Element.text', () {
@@ -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 | « packages/html/test/dom_test.dart ('k') | packages/html/test/run_all.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698