added testrunner current version supports screen dump of html page as png

This commit is contained in:
2019-05-28 13:54:50 +02:00
parent a2711a735d
commit 34872d6b8b
46 changed files with 184 additions and 30 deletions
+5 -3
View File
@@ -30,11 +30,13 @@ export default class Index {
//console.log("iconSrc", iconSrc)
if (iconSrc.endsWith('index.png')) {
icon.src = iconSrc.replace('index.png', 'thumbnail.png')
} else if (iconSrc.endsWith('test.png')) {
icon.src = iconSrc.replace('test.png', 'thumbnail.test.png')
} else {
}
else {
icon.src = 'thumbnails/' + iconSrc
}
// icon.src = 'thumbnails/' + iconSrc
// console.log(iconSrc)
wrapper.href = src
let titleDiv = wrapper.querySelector('.title')
titleDiv.innerText = title