Fixed RTL issue #161

This commit is contained in:
RAFIE Younes
2016-01-13 01:33:33 +00:00
committed by Zeno Rocha
parent ee1eb455f4
commit 31e3622e17
2 changed files with 16 additions and 1 deletions

View File

@ -57,6 +57,19 @@ describe('ClipboardAction', () => {
done();
}
});
it('should set the position right style property', done => {
// Set document direction
document.documentElement.setAttribute('dir', 'rtl');
let clip = new ClipboardAction({
emitter: new Emitter(),
text: 'foo'
});
assert.equal(clip.fakeElem.style.right, '-9999px');
done();
});
});
describe('#set action', () => {