Reputation: 3897
I'm using retina.js to substitute larger sized image variants for retina displays.
I need to test that the script is working. My output should read as:
[email protected]
...instead of...
someimage.png
I can't find a means of emulating a retina display that will allow me to check the source code.
layout.css.devPixelsPerPx
is set to -1 (not 1). Changing to -2 or 2 does not produce the necessary result.Upvotes: 1
Views: 150
Reputation: 763
Perhaps you could write a test variable in to the URL, and alert the image source, and use a retina device or that opera emulator.
Something like yoursite.com/app?alertImage=test
(assuming you're using jquery):
if (location.search.indexOf('alertImage') >= 0) {
alert($('.imageClass').attr('src'));
}
Upvotes: 2