Skip to content

Commit

Permalink
Disable broken image/svg tests under wasm32.
Browse files Browse the repository at this point in the history
  • Loading branch information
xStrom committed Apr 17, 2020
1 parent 23ccc5e commit c5fb7ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions druid/src/widget/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ impl Default for ImageData {
}
}

#[cfg(not(target_arch = "wasm32"))]
#[cfg(test)]
mod tests {
use super::*;
Expand Down
1 change: 1 addition & 0 deletions druid/src/widget/svg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ fn color_from_usvg(paint: &usvg::Paint, opacity: usvg::Opacity) -> Color {
}
}

#[cfg(not(target_arch = "wasm32"))]
#[cfg(test)]
mod tests {
use super::*;
Expand Down

0 comments on commit c5fb7ae

Please sign in to comment.