[librsvg: 3/8] Try not using a base URL




commit 990aafadd8dd54d8d6cd94bd2b64a7532b1e9a34
Author: Federico Mena Quintero <federico gnome org>
Date:   Tue Aug 9 20:59:01 2022 -0500

    Try not using a base URL
    
    Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/728>

 src/url_resolver.rs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/url_resolver.rs b/src/url_resolver.rs
index b2393e399..c8162dece 100644
--- a/src/url_resolver.rs
+++ b/src/url_resolver.rs
@@ -239,7 +239,8 @@ mod tests {
     #[cfg(windows)]
     #[test]
     fn invalid_url_from_test_suite() {
-        let resolver = UrlResolver::new(Some(Url::parse("file:///c:/foo.svg").expect("initial url")));
+        // let resolver = UrlResolver::new(Some(Url::parse("file:///c:/foo.svg").expect("initial url")));
+        let resolver = UrlResolver::new(None);
         match resolver.resolve_href("file://invalid.css") {
             Ok(_) => println!("yay!"),
             Err(e) => println!("err: {}", e),


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