Cleaning test IMG viewer component (#4906)

* promote use setupTestbed

* fix sanatize transform img

* fix sanatize transform img
This commit is contained in:
Eugenio Romano
2019-07-08 10:21:48 +01:00
committed by GitHub
parent a4fc53a742
commit cf761ba0b2
5 changed files with 242 additions and 290 deletions

View File

@@ -1,4 +1,4 @@
<div class="adf-image-container" tabindex="0" role="img" [attr.aria-label]="nameFile" [ngStyle]="{ transform: transform }" data-automation-id="adf-image-container">
<div id="adf-image-container" class="adf-image-container" tabindex="0" role="img" [attr.aria-label]="nameFile" [style.transform]="transform" data-automation-id="adf-image-container">
<img id="viewer-image" [src]="urlFile" [alt]="nameFile" [ngStyle]="{ 'cursor' : isDragged ? 'move': 'default' } " />
</div>