Added QrCode renderer
This commit is contained in:
parent
b97abc7091
commit
b218313ed3
5 changed files with 106 additions and 5 deletions
|
@ -45,6 +45,14 @@ class TestFormat {
|
|||
+ foo + "</a>");
|
||||
}
|
||||
|
||||
@Test
|
||||
void testQrCode() {
|
||||
var t = TemplateFactory.SVG.get("qrCode");
|
||||
var foo = "https://example.com/";
|
||||
t.setAttribute(TestCase.FOO, foo);
|
||||
assertThat(t.getContent()).startsWith("<?xml").contains("<desc>" + foo + "</desc").contains("width=\"200\"");
|
||||
}
|
||||
|
||||
@Test
|
||||
void testShortenUrl() {
|
||||
var t = TemplateFactory.HTML.get("shortenUrl");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue