[librsvg: 12/33] Fix imports in tests that came from librsvg_crate




commit 8abf768a90556c83b01e25cdedf7b3126e47768c
Author: Federico Mena Quintero <federico gnome org>
Date:   Thu Oct 29 18:03:50 2020 -0600

    Fix imports in tests that came from librsvg_crate

 tests/src/api.rs                  | 6 ++++--
 tests/src/bugs.rs                 | 8 +++++---
 tests/src/intrinsic_dimensions.rs | 5 ++---
 tests/src/primitives.rs           | 6 ++++--
 4 files changed, 15 insertions(+), 10 deletions(-)
---
diff --git a/tests/src/api.rs b/tests/src/api.rs
index ed7d4ee1..065632da 100644
--- a/tests/src/api.rs
+++ b/tests/src/api.rs
@@ -1,8 +1,10 @@
 use cairo;
 use librsvg::{CairoRenderer, DefsLookupErrorKind, HrefError, RenderingError};
 
-use rsvg_internals::surface_utils::shared_surface::{SharedImageSurface, SurfaceType};
-use rsvg_internals::test_utils::compare_to_surface;
+use librsvg::{
+    surface_utils::shared_surface::{SharedImageSurface, SurfaceType},
+    test_utils::compare_to_surface,
+};
 
 use crate::utils::load_svg;
 
diff --git a/tests/src/bugs.rs b/tests/src/bugs.rs
index d07085cd..6cb024f7 100644
--- a/tests/src/bugs.rs
+++ b/tests/src/bugs.rs
@@ -1,8 +1,10 @@
 use cairo;
-use librsvg::{LoadingError, SvgHandle};
+use librsvg::{
+    surface_utils::shared_surface::{SharedImageSurface, SurfaceType},
+    test_utils::compare_to_surface,
+    LoadingError, SvgHandle,
+};
 use matches::matches;
-use rsvg_internals::surface_utils::shared_surface::{SharedImageSurface, SurfaceType};
-use rsvg_internals::test_utils::compare_to_surface;
 
 use crate::utils::{load_svg, render_document, SurfaceSize};
 
diff --git a/tests/src/intrinsic_dimensions.rs b/tests/src/intrinsic_dimensions.rs
index 9851302e..feee7935 100644
--- a/tests/src/intrinsic_dimensions.rs
+++ b/tests/src/intrinsic_dimensions.rs
@@ -1,9 +1,8 @@
 use cairo;
 
-use rsvg_internals::surface_utils::shared_surface::{SharedImageSurface, SurfaceType};
-use rsvg_internals::test_utils::compare_to_surface;
-
 use librsvg::{
+    surface_utils::shared_surface::{SharedImageSurface, SurfaceType},
+    test_utils::compare_to_surface,
     CairoRenderer, DefsLookupErrorKind, HrefError, IntrinsicDimensions, Length, LengthUnit,
     RenderingError,
 };
diff --git a/tests/src/primitives.rs b/tests/src/primitives.rs
index 6d035e45..acc682f2 100644
--- a/tests/src/primitives.rs
+++ b/tests/src/primitives.rs
@@ -1,7 +1,9 @@
 use cairo;
 
-use rsvg_internals::surface_utils::shared_surface::{SharedImageSurface, SurfaceType};
-use rsvg_internals::test_utils::compare_to_surface;
+use librsvg::{
+    surface_utils::shared_surface::{SharedImageSurface, SurfaceType},
+    test_utils::compare_to_surface,
+};
 
 use crate::utils::{load_svg, render_document, SurfaceSize};
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]