/** * @author Edouard DUPIN * * @copyright 2014, Edouard DUPIN, all right reserved * * @license APACHE v2.0 (see license file) */ #include #include #include "main.h" #undef __class__ #define __class__ "TestColor" TEST(TestColor, blending) { std::string data("" "" " " ""); esvg::Document doc; doc.parse(data); etk::FSNodeWriteAllData("TestColor_blending.svg", data); doc.generateAnImage(ivec2(100, 100), "TestColor_blending.bmp", g_visualDebug); } TEST(TestColor, opacity) { std::string data("" "" " " ""); esvg::Document doc; doc.parse(data); etk::FSNodeWriteAllData("TestColor_opacity.svg", data); doc.generateAnImage(ivec2(100, 100), "TestColor_opacity.bmp", g_visualDebug); } TEST(TestColor, blending_and_opacity) { std::string data("" "" " " ""); esvg::Document doc; doc.parse(data); etk::FSNodeWriteAllData("TestColor_blending_and_opacity.svg", data); doc.generateAnImage(ivec2(100, 100), "TestColor_blending_and_opacity.bmp", g_visualDebug); } TEST(TestColor, multiple_layer) { std::string data("" "" " " " " " " ""); esvg::Document doc; doc.parse(data); etk::FSNodeWriteAllData("TestColor_multiple_layer.svg", data); doc.generateAnImage(ivec2(100, 100), "TestColor_multiple_layer.bmp", g_visualDebug); }