Skip to content

Commit

Permalink
Added tests for Two.Text.direction
Browse files Browse the repository at this point in the history
  • Loading branch information
jonobr1 committed Feb 22, 2024
1 parent 4056107 commit 6ae6f5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/suite/svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@

QUnit.test('Two.makeText', function(assert) {

assert.expect(16);
assert.expect(17);

var two = new Two({
width: 400,
Expand Down Expand Up @@ -438,6 +438,7 @@
assert.equal(elem.getAttribute('opacity'), '1', 'The opacity attribute applied properly.');
assert.equal(elem.getAttribute('visibility'), 'visible', 'The visibility attribute applied properly.');
assert.equal(elem.getAttribute('class'), 'hello world', 'The class attribute applied properly.');
assert.equal(elem.getAttribute('direction', 'ltr'), 'The direction attribute applied properly.');
assert.equal(elem.innerHTML, text.value, 'The value attribute applied properly.');

QUnit.Utils.addInstanceToTest(assert.test, two);
Expand Down

0 comments on commit 6ae6f5a

Please sign in to comment.