mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FEATURE: add support for device pixel ratio = 3
This commit is contained in:
parent
4f1a72f729
commit
e101396ea1
4 changed files with 8 additions and 8 deletions
|
@ -117,7 +117,7 @@ test("isAnImage", function() {
|
|||
});
|
||||
|
||||
test("avatarUrl", function() {
|
||||
var rawSize = Discourse.Utilities.getRawSize;
|
||||
var rawSize = utils.getRawSize;
|
||||
blank(utils.avatarUrl('', 'tiny'), "no template returns blank");
|
||||
equal(utils.avatarUrl('/fake/template/{size}.png', 'tiny'), "/fake/template/" + rawSize(20) + ".png", "simple avatar url");
|
||||
equal(utils.avatarUrl('/fake/template/{size}.png', 'large'), "/fake/template/" + rawSize(45) + ".png", "different size");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue