-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add regression test for #9518 * More thorough input checks for isPatternMissing function Fixes regression introduced by #9380 ResolvedImage.fromString may now return null, which potentially leaves CrossFaded<ResolvedImage> with missing image patterns I have traced other code paths using ResolvedImage.fromString and have not seen any other potential offenders
- Loading branch information
1 parent
acb48ab
commit 3f08a28
Showing
3 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+69 Bytes
test/integration/render-tests/regressions/mapbox-gl-js#9518/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions
27
test/integration/render-tests/regressions/mapbox-gl-js#9518/style.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"width": 8, | ||
"height": 8 | ||
} | ||
}, | ||
"zoom": 3, | ||
"sources": {}, | ||
"sprite": "local://sprites/emerald", | ||
"layers": [ | ||
{ | ||
"id": "background", | ||
"type": "background", | ||
"paint": { | ||
"background-pattern": [ | ||
"step", | ||
["zoom"], | ||
"", | ||
5, | ||
"cemetery_icon" | ||
] | ||
} | ||
} | ||
] | ||
} |