Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Nico Burns <[email protected]>
  • Loading branch information
nicoburns committed Nov 28, 2024
1 parent 74d8ef5 commit 2e3dc9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/blitz-html/src/html_sink.rs
Original file line number Diff line number Diff line change
Expand Up @@ -396,12 +396,12 @@ impl<'b> TreeSink for DocumentHtmlParser<'b> {

#[test]
fn parses_some_html() {
use blitz_dom::Viewport;
use blitz_dom::{ColorScheme, Viewport};
use blitz_traits::net::DummyNetProvider;
use std::sync::Arc;

let html = "<!DOCTYPE html><html><body><h1>hello world</h1></body></html>";
let viewport = Viewport::new(800, 600, 1.0);
let viewport = Viewport::new(800, 600, 1.0, ColorScheme::Light);
let mut doc = Document::new(viewport);
let sink = DocumentHtmlParser::new(&mut doc, Arc::new(DummyNetProvider::default()));

Expand Down

0 comments on commit 2e3dc9d

Please sign in to comment.