From 34872d6b8b37f6f38c19311ba8c510cd56c6afdc Mon Sep 17 00:00:00 2001 From: Manfred Knobloch Date: Tue, 28 May 2019 13:54:50 +0200 Subject: [PATCH] added testrunner current version supports screen dump of html page as png --- dist/iwmlib.js | 8 +- lib/index.js | 8 +- lib/pixi/deepzoom/index.html | 5 +- lib/pixi/deepzoom/thumbnail.test.png | Bin 371647 -> 0 bytes lib/pixi/index.html | 8 +- lib/pixi/thumbnail.png | Bin 146807 -> 216854 bytes lib/pixi/thumbnails/app.png | Bin 247868 -> 73553 bytes lib/pixi/thumbnails/application.png | Bin 38934 -> 12349 bytes lib/pixi/thumbnails/badge.png | Bin 392726 -> 61000 bytes lib/pixi/thumbnails/blurfilter.png | Bin 1091493 -> 60812 bytes lib/pixi/thumbnails/button.png | Bin 530167 -> 64800 bytes lib/pixi/thumbnails/buttongroup.png | Bin 861606 -> 59425 bytes lib/pixi/thumbnails/coordinates.png | Bin 513112 -> 67407 bytes lib/pixi/thumbnails/deepzoomimage.png | Bin 119628 -> 0 bytes lib/pixi/thumbnails/flipeffect.png | Bin 610208 -> 74877 bytes lib/pixi/thumbnails/flippable.png | Bin 227839 -> 41498 bytes lib/pixi/thumbnails/list.png | Bin 192787 -> 48360 bytes lib/pixi/thumbnails/message.png | Bin 231580 -> 53648 bytes lib/pixi/thumbnails/modal.png | Bin 549568 -> 63351 bytes lib/pixi/thumbnails/popover.png | Bin 288458 -> 125385 bytes lib/pixi/thumbnails/popup.png | Bin 252636 -> 65942 bytes lib/pixi/thumbnails/popupmenu.png | Bin 505402 -> 60475 bytes lib/pixi/thumbnails/progress.png | Bin 439619 -> 44742 bytes lib/pixi/thumbnails/scatter.png | Bin 486115 -> 63602 bytes lib/pixi/thumbnails/slider.png | Bin 109631 -> 44981 bytes lib/pixi/thumbnails/switch.png | Bin 500770 -> 77926 bytes lib/pixi/thumbnails/text.png | Bin 186955 -> 47038 bytes lib/pixi/thumbnails/tooltip.png | Bin 725892 -> 76162 bytes lib/pixi/thumbnails/volatile.png | Bin 181183 -> 53313 bytes lib/thumbnails/app.png | Bin 68852 -> 0 bytes lib/thumbnails/capabilities.png | Bin 70421 -> 64299 bytes lib/thumbnails/coordinates.png | Bin 133308 -> 136995 bytes lib/thumbnails/doctest.png | Bin 116536 -> 74582 bytes lib/thumbnails/events.png | Bin 102538 -> 134382 bytes lib/thumbnails/flippable.png | Bin 116774 -> 64194 bytes lib/thumbnails/frames.png | Bin 144699 -> 133360 bytes lib/thumbnails/index.png | Bin 63011 -> 0 bytes lib/thumbnails/interaction.png | Bin 190255 -> 116940 bytes lib/thumbnails/interface.png | Bin 44045 -> 40841 bytes lib/thumbnails/popup.png | Bin 82753 -> 68107 bytes lib/thumbnails/popupmenu.png | Bin 83703 -> 73762 bytes lib/thumbnails/scatter.png | Bin 96161 -> 162999 bytes lib/thumbnails/styleguide.png | Bin 103696 -> 81144 bytes lib/thumbnails/uitest.png | Bin 102946 -> 63543 bytes package-lock.json | 179 +++++++++++++++++++++++--- package.json | 6 +- 46 files changed, 184 insertions(+), 30 deletions(-) delete mode 100644 lib/pixi/deepzoom/thumbnail.test.png delete mode 100644 lib/pixi/thumbnails/deepzoomimage.png delete mode 100644 lib/thumbnails/app.png delete mode 100644 lib/thumbnails/index.png diff --git a/dist/iwmlib.js b/dist/iwmlib.js index bf9abd5..27e86a1 100644 --- a/dist/iwmlib.js +++ b/dist/iwmlib.js @@ -4898,11 +4898,13 @@ //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; diff --git a/lib/index.js b/lib/index.js index fdef5b4..df1011d 100755 --- a/lib/index.js +++ b/lib/index.js @@ -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 diff --git a/lib/pixi/deepzoom/index.html b/lib/pixi/deepzoom/index.html index c8a9b52..bb4f524 100644 --- a/lib/pixi/deepzoom/index.html +++ b/lib/pixi/deepzoom/index.html @@ -22,8 +22,9 @@ -
-
+
+ IWM +