gemini-testing / gemini-testing/looks-same

Single pixel diffs are not ignored

Open
#34 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
827
Forks
55
PR merge metrics
No merged PRs in 30d

Description

Using looks-same v3.3.0.

Note that the reference image was generated using WebGL on a Macbook Pro 2015, whereas the generated image is generated using a docker image running Ubuntu with osmesa.

*looks-same configuration*:
```
await looksSameAsync(actual, expected,
{
tolerance: tolerance,
pixelRatio: self._getDPI(), // set to device DPI
ignoreAntialiasing: true,
ignoreCaret: true
});

await looksSame.createDiffAsync({
reference: this._getReferenceFilePath(),
current: this.getActualFilePath(),
diff: this._getDiffFilePath(),
highlightColor: '#ff00ff',
tolerance: tolerance,
pixelRatio: self._getDPI(),
ignoreAntialiasing: true,
ignoreCaret: true
});
```

**reference image**:
![single-triangle-colors](https://user-images.githubusercontent.com/997106/42227280-c1e34e70-7ea6-11e8-827f-66de5090da47.png)

**generated image**:
![single-triangle-colors](https://user-images.githubusercontent.com/997106/42227391-057d76ba-7ea7-11e8-8e4f-b1e113417f52.png)

**diff**:
![single-triangle-colors](https://user-images.githubusercontent.com/997106/42227404-0c161aae-7ea7-11e8-833e-24bb6177f929.png)

The lower left pixel of the triangle is showing up as different, and the test is failing due to this.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.