mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: add support for device pixel ratio = 3
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user