mirror of
https://github.com/konvajs/konva.git
synced 2025-04-05 20:48:28 +08:00
added role=presentation to content node
This commit is contained in:
parent
9e437d2b83
commit
65166d7ddd
@ -615,6 +615,7 @@
|
|||||||
this.content.style.position = RELATIVE;
|
this.content.style.position = RELATIVE;
|
||||||
this.content.style.display = INLINE_BLOCK;
|
this.content.style.display = INLINE_BLOCK;
|
||||||
this.content.className = KINETICJS_CONTENT;
|
this.content.className = KINETICJS_CONTENT;
|
||||||
|
this.content.setAttribute('role', 'presentation');
|
||||||
container.appendChild(this.content);
|
container.appendChild(this.content);
|
||||||
|
|
||||||
// the buffer canvas pixel ratio must be 1 because it is used as an
|
// the buffer canvas pixel ratio must be 1 because it is used as an
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
suite('Stage', function() {
|
suite('Stage', function() {
|
||||||
|
|
||||||
// ======================================================
|
// ======================================================
|
||||||
test('instantiate stage with id', function() {
|
test.only('instantiate stage with id', function() {
|
||||||
var container = document.createElement('div');
|
var container = document.createElement('div');
|
||||||
container.id = 'container';
|
container.id = 'container';
|
||||||
|
|
||||||
@ -12,6 +12,11 @@ suite('Stage', function() {
|
|||||||
width: 578,
|
width: 578,
|
||||||
height: 200
|
height: 200
|
||||||
});
|
});
|
||||||
|
|
||||||
|
assert.equal(stage.getContent().className, 'kineticjs-content');
|
||||||
|
assert.equal(stage.getContent().getAttribute('role'), 'presentation');
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// ======================================================
|
// ======================================================
|
||||||
|
Loading…
Reference in New Issue
Block a user