2014-12-30 21:37:52 +00:00
|
|
|
// Setup (and teardown) SVG container template
|
2014-12-30 02:31:36 +00:00
|
|
|
beforeEach(function() {
|
|
|
|
var template = document.createElement('script');
|
|
|
|
template.setAttribute('type', 'text/html');
|
|
|
|
template.setAttribute('id', 'svg-container-base');
|
|
|
|
template.innerHTML = [
|
|
|
|
'<div class="svg"><svg></svg></div>',
|
|
|
|
'<div class="progress"><div></div></div>'
|
|
|
|
].join('');
|
|
|
|
document.body.appendChild(template);
|
|
|
|
});
|
|
|
|
|
|
|
|
afterEach(function() {
|
|
|
|
document.body.removeChild(document.body.querySelector('#svg-container-base'));
|
|
|
|
});
|
2014-12-30 21:37:52 +00:00
|
|
|
|
|
|
|
// Spy on _gaq.push to prevent unnecessary logging
|
|
|
|
window._gaq = {
|
|
|
|
push() {}
|
|
|
|
}
|