| 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() {
|
| }
|
| });
|
| });
|
| -}
|
| +}
|
|
|