Macro rsvg::test_svg_reference
source · macro_rules! test_svg_reference { ($test_name:ident, $test_filename:expr, $reference_filename:expr) => { ... }; }
Expand description
Render two SVG files and compare them.
This is used to implement reference tests, or reftests. Use it like this:
use rsvg::test_svg_reference;
test_svg_reference!(test_name, "tests/fixtures/blah/foo.svg", "tests/fixtures/blah/foo-ref.svg");
This will ensure that foo.svg
and foo-ref.svg
have exactly the same intrinsic dimensions,
and that they produce the same rendered output.