mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-23 02:15:01 +00:00
Add regression test for case insensitive filename collision
This commit is contained in:
parent
5b7057e1d4
commit
610226f543
3 changed files with 10 additions and 0 deletions
BIN
packages/webamp/demo/skins/My_Funny_Valentine.wsz
Normal file
BIN
packages/webamp/demo/skins/My_Funny_Valentine.wsz
Normal file
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 127 KiB |
|
|
@ -55,6 +55,16 @@ test("should render a skin that defines transparent regions", async () => {
|
|||
expect(await page.screenshot()).toMatchImageSnapshot(snapshotOptions);
|
||||
});
|
||||
|
||||
test("should render a skin that has files that only differ by case: main.bmp and main.BMP", async () => {
|
||||
await page.goto(`${DOMAIN}/#{"disableMarquee":true}`);
|
||||
await expect(page).toUploadFile(
|
||||
"#webamp-file-input",
|
||||
path.join(__dirname, "../../demo/skins/My_Funny_Valentine.wsz")
|
||||
);
|
||||
await page.evaluate(() => window.__webamp.skinIsLoaded());
|
||||
expect(await page.screenshot()).toMatchImageSnapshot(snapshotOptions);
|
||||
});
|
||||
|
||||
test("uses the volume spirtes as a fallback when balance spirtes are missing", async () => {
|
||||
await page.goto(`${DOMAIN}/#{"disableMarquee":true}`);
|
||||
await expect(page).toUploadFile(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue