added role=presentation to content node

This commit is contained in:
Eric Rowell 2013-11-02 22:39:24 -07:00
parent 9e437d2b83
commit 65166d7ddd
2 changed files with 7 additions and 1 deletions

View File

@ -615,6 +615,7 @@
this.content.style.position = RELATIVE;
this.content.style.display = INLINE_BLOCK;
this.content.className = KINETICJS_CONTENT;
this.content.setAttribute('role', 'presentation');
container.appendChild(this.content);
// the buffer canvas pixel ratio must be 1 because it is used as an

View File

@ -1,7 +1,7 @@
suite('Stage', function() {
// ======================================================
test('instantiate stage with id', function() {
test.only('instantiate stage with id', function() {
var container = document.createElement('div');
container.id = 'container';
@ -12,6 +12,11 @@ suite('Stage', function() {
width: 578,
height: 200
});
assert.equal(stage.getContent().className, 'kineticjs-content');
assert.equal(stage.getContent().getAttribute('role'), 'presentation');
});
// ======================================================