Append directly to the document body
This commit is contained in:
@@ -359,7 +359,7 @@
|
|||||||
|
|
||||||
function resembleCanvas(canvas, referenceImage, tolerance, done) {
|
function resembleCanvas(canvas, referenceImage, tolerance, done) {
|
||||||
if (window.showMap) {
|
if (window.showMap) {
|
||||||
document.getElementById('debug').appendChild(canvas);
|
document.body.appendChild(canvas);
|
||||||
}
|
}
|
||||||
|
|
||||||
resemble(referenceImage)
|
resemble(referenceImage)
|
||||||
@@ -376,7 +376,7 @@
|
|||||||
if (window.showDiff) {
|
if (window.showDiff) {
|
||||||
var diffImage = new Image();
|
var diffImage = new Image();
|
||||||
diffImage.src = data.getImageDataUrl();
|
diffImage.src = data.getImageDataUrl();
|
||||||
document.getElementById('debug').appendChild(diffImage);
|
document.body.appendChild(diffImage);
|
||||||
}
|
}
|
||||||
expect(data.misMatchPercentage).to.be.below(tolerance);
|
expect(data.misMatchPercentage).to.be.below(tolerance);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -88,6 +88,5 @@
|
|||||||
Tests should not depend on any specific markup and should instead create
|
Tests should not depend on any specific markup and should instead create
|
||||||
whatever elements are needed (cleaning up when done).
|
whatever elements are needed (cleaning up when done).
|
||||||
-->
|
-->
|
||||||
<div id="debug"></div>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user