added Kinetic level pixelRatio property that can be used to override the detected pixel ratio. Also fixed up a pixel ratio related test for FF. added Kinetic.UA for user agent detection

This commit is contained in:
Eric Rowell
2013-09-13 23:26:58 -07:00
parent 88c419fef6
commit 659d0409b3
5 changed files with 29 additions and 7 deletions

View File

@@ -3,6 +3,8 @@ var assert = chai.assert,
kineticContainer = document.getElementById('kinetic-container');
Kinetic.enableTrace = true;
// make sure pixel ratio is 1 or else the tests will fail on devices with retina display
Kinetic.pixelRatio = 1;
function addStage() {
var container = document.createElement('div'),