@applitools/screenshoter 3.4.4 → 3.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/image.js +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/screenshoter",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.5",
|
|
4
4
|
"description": "Applitools universal screenshoter for web and native applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"applitools",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@applitools/bongo": "^2.1.5",
|
|
81
|
-
"@applitools/driver": "^1.9.
|
|
81
|
+
"@applitools/driver": "^1.9.7",
|
|
82
82
|
"@applitools/scripts": "1.1.0",
|
|
83
83
|
"@applitools/spec-driver-webdriverio": "1.2.13",
|
|
84
84
|
"@applitools/test-utils": "1.3.3",
|
package/src/image.js
CHANGED
|
@@ -372,7 +372,9 @@ async function copy(dstImage, srcImage, offset) {
|
|
|
372
372
|
for (let chunk = 0; chunk < srcHeight; ++chunk) {
|
|
373
373
|
const srcOffset = chunk * srcImage.width * 4
|
|
374
374
|
const dstOffset = ((dstY + chunk) * dstImage.width + dstX) * 4
|
|
375
|
-
|
|
375
|
+
if (dstOffset >= 0) {
|
|
376
|
+
dstImage.data.set(srcImage.data.subarray(srcOffset, srcOffset + chunkLength), dstOffset)
|
|
377
|
+
}
|
|
376
378
|
}
|
|
377
379
|
|
|
378
380
|
return dstImage
|