removed .onContent() and replaced with .getDOM()

This commit is contained in:
Eric Rowell
2012-04-28 00:07:44 -07:00
parent 9fef9e54d9
commit 222aea4e2e
4 changed files with 59 additions and 36 deletions

View File

@@ -128,6 +128,15 @@ Test.prototype.tests = {
test(attrs.name === 'myCircle', 'name attr should be myCircle');
test(attrs.draggable === true, 'draggable attr should be true');
},
'STAGE - get stage DOM': function(containerId) {
var stage = new Kinetic.Stage({
container: containerId,
width: 578,
height: 200
});
test(stage.getDOM().className === 'kineticjs-content', 'stage DOM class name is wrong');
},
'STAGE - load stage using json': function(containerId) {
var stage = new Kinetic.Stage({
container: containerId,