Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
alextekartik committed Feb 20, 2025
1 parent bfc4358 commit 87c4ad7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/src/web/html_web.dart
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ class _ElementList extends ListBase<Element> implements ElementList {
}
}

mixin _NodeWebMixin implements Node {
mixin _NodeWebMixin implements NodeWeb {
@override
HtmlProvider get htmlProvider => htmlProviderWeb;

Expand Down
7 changes: 5 additions & 2 deletions test/document_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,11 @@ void testMain(HtmlProvider html) {

doc = html.createDocument(title: 'test', charset: null);
expect(doc.head.innerHtml, '<title>test</title>');
doc.head.appendChild(htmlProviderHtml5Lib
.createElementHtml('<link rel="canonical" href="/index.html">'));
doc.head.appendChild(html
.createElementHtml(
'<div><link rel="canonical" href="/index.html"></div>')
.children
.first);
});

test('html', () {
Expand Down

0 comments on commit 87c4ad7

Please sign in to comment.