Skip to content

Commit 6826c42

Browse files
committed
check for correct dir in HTML elements
1 parent 4f041e4 commit 6826c42

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tests/dom/element.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
testing.expectEqual('div', content.localName);
1818
testing.expectEqual('DIV', content.tagName);
1919
testing.expectEqual('content', content.id);
20+
testing.expectEqual('ltr', content.dir);
2021

2122
content.id = 'foo';
2223
testing.expectEqual('foo', content.id);
@@ -26,6 +27,7 @@
2627

2728
let p1 = document.getElementById('para-empty');
2829
testing.expectEqual('ok empty', p1.className);
30+
testing.expectEqual('', p1.dir);
2931

3032
p1.className = 'foo bar baz';
3133
testing.expectEqual('foo bar baz', p1.className);

0 commit comments

Comments
 (0)