Improve blurhash decode warning, use valid hashes in tests
This commit is contained in:
@@ -23,7 +23,7 @@ export default class Blurhash extends Component {
|
|||||||
imageData.data.set(pixels);
|
imageData.data.set(pixels);
|
||||||
ctx.putImageData(imageData, 0, 0);
|
ctx.putImageData(imageData, 0, 0);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.warn('Failed to decode blurhash:', e);
|
console.warn('Failed to decode blurhash:', e.message || e);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ module('Integration | Component | place-photos-carousel', function (hooks) {
|
|||||||
{
|
{
|
||||||
url: 'photo1.jpg',
|
url: 'photo1.jpg',
|
||||||
thumbUrl: 'thumb1.jpg',
|
thumbUrl: 'thumb1.jpg',
|
||||||
blurhash: 'L0000',
|
blurhash: 'LKO2?U%2Tw=w]~RBVZRi};RPxuwH',
|
||||||
ratio: 1.5,
|
ratio: 1.5,
|
||||||
isLandscape: true,
|
isLandscape: true,
|
||||||
},
|
},
|
||||||
@@ -56,21 +56,21 @@ module('Integration | Component | place-photos-carousel', function (hooks) {
|
|||||||
{
|
{
|
||||||
url: 'photo1.jpg',
|
url: 'photo1.jpg',
|
||||||
thumbUrl: 'thumb1.jpg',
|
thumbUrl: 'thumb1.jpg',
|
||||||
blurhash: 'L0000',
|
blurhash: 'LKO2?U%2Tw=w]~RBVZRi};RPxuwH',
|
||||||
ratio: 1.5,
|
ratio: 1.5,
|
||||||
isLandscape: true,
|
isLandscape: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
url: 'photo2.jpg',
|
url: 'photo2.jpg',
|
||||||
thumbUrl: 'thumb2.jpg',
|
thumbUrl: 'thumb2.jpg',
|
||||||
blurhash: 'L1111',
|
blurhash: 'LKO2?U%2Tw=w]~RBVZRi};RPxuwH',
|
||||||
ratio: 1.0,
|
ratio: 1.0,
|
||||||
isLandscape: false,
|
isLandscape: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
url: 'photo3.jpg',
|
url: 'photo3.jpg',
|
||||||
thumbUrl: 'thumb3.jpg',
|
thumbUrl: 'thumb3.jpg',
|
||||||
blurhash: 'L2222',
|
blurhash: 'LKO2?U%2Tw=w]~RBVZRi};RPxuwH',
|
||||||
ratio: 0.8,
|
ratio: 0.8,
|
||||||
isLandscape: false,
|
isLandscape: false,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user