Wait for page load during test

This commit is contained in:
krzystof 2015-10-30 12:58:31 +00:00
parent e058c528fb
commit db6bef1106

View File

@ -44,6 +44,7 @@ var packageName; // there seems to be no official way of finding out the name o
var plugins = ['affix', 'alert', 'button', 'carousel', 'collapse', 'dropdown', 'modal', 'popover', 'scrollspy', 'tab', 'tooltip']; var plugins = ['affix', 'alert', 'button', 'carousel', 'collapse', 'dropdown', 'modal', 'popover', 'scrollspy', 'tab', 'tooltip'];
document.addEventListener('DOMContentLoaded', function() {
// test plugins // test plugins
plugins.forEach(function (plugin) { plugins.forEach(function (plugin) {
Tinytest.add('Plugin - ' + plugin, function (test) { Tinytest.add('Plugin - ' + plugin, function (test) {
@ -101,3 +102,5 @@ Tinytest.addAsync('Visual check - Material Design', function (test, done) {
}); });
}); });
});