mirror of
https://github.com/iconify/iconify.git
synced 2025-01-15 03:13:52 +00:00
Add tests for title attribute for SVG framework
This commit is contained in:
parent
cfebb972a6
commit
8510d68768
@ -90,19 +90,19 @@ describe('Testing Iconify object', () => {
|
||||
|
||||
it('Rendering icons without API', (done) => {
|
||||
node1.innerHTML =
|
||||
'<div><p>Testing Iconify without API (should render SVG!)</p>' +
|
||||
'<div><p>Testing Iconify without API (should render SVG!) and with titles</p>' +
|
||||
' <span class="iconify-inline" data-icon="' +
|
||||
prefix +
|
||||
':home" style="color: red; box-shadow: 0 0 2px black;"></span>' +
|
||||
':home" style="color: red; box-shadow: 0 0 2px black;" title="Home Icon"></span>' +
|
||||
' <i class="iconify-inline test-icon iconify--mdi-account" data-icon="' +
|
||||
prefix +
|
||||
':account" style="vertical-align: 0;" data-flip="horizontal" aria-hidden="false"></i>' +
|
||||
':account" style="vertical-align: 0;" data-flip="horizontal" aria-hidden="false" title="Account Icon"></i>' +
|
||||
' <i class="iconify" data-icon="' +
|
||||
prefix +
|
||||
':account-cash" title="<Cash>!"></i>' +
|
||||
' <span class="iconify" data-icon="' +
|
||||
prefix +
|
||||
':account-box" data-inline="true" data-rotate="2" data-width="42"></span>' +
|
||||
':account-box" data-inline="true" data-rotate="2" data-width="42" title="account-box"></span>' +
|
||||
' <span class="iconify" data-icon="' +
|
||||
prefix +
|
||||
':id-test"></span>' +
|
||||
|
Loading…
Reference in New Issue
Block a user