added testrunner current version supports screen dump of html page as png
This commit is contained in:
+5
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user