//! The `export` tool's Android Vector Drawable format: the XML as text, then its warnings. use crate::common::Client; use serde_json::{Value, json}; #[test] fn xml_comes_back_as_text_and_its_warnings() { let mut c = Client::new(); let id = c.create(json!({"type": "rectangle", "x": 0, "y": 0, "width": 24, "height": 16})); let r = c.call("export", json!({"ids": [id], "format": "xml"})); assert_eq!(r["isError"], false, "{r}"); let blocks = r["content"].as_array().unwrap(); let xml = blocks[0]["text"].as_str().unwrap(); assert!(xml.starts_with("