mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 07:03:29 +00:00
check for correct dir in HTML elements
This commit is contained in:
@@ -17,6 +17,7 @@
|
|||||||
testing.expectEqual('div', content.localName);
|
testing.expectEqual('div', content.localName);
|
||||||
testing.expectEqual('DIV', content.tagName);
|
testing.expectEqual('DIV', content.tagName);
|
||||||
testing.expectEqual('content', content.id);
|
testing.expectEqual('content', content.id);
|
||||||
|
testing.expectEqual('ltr', content.dir);
|
||||||
|
|
||||||
content.id = 'foo';
|
content.id = 'foo';
|
||||||
testing.expectEqual('foo', content.id);
|
testing.expectEqual('foo', content.id);
|
||||||
@@ -26,6 +27,7 @@
|
|||||||
|
|
||||||
let p1 = document.getElementById('para-empty');
|
let p1 = document.getElementById('para-empty');
|
||||||
testing.expectEqual('ok empty', p1.className);
|
testing.expectEqual('ok empty', p1.className);
|
||||||
|
testing.expectEqual('', p1.dir);
|
||||||
|
|
||||||
p1.className = 'foo bar baz';
|
p1.className = 'foo bar baz';
|
||||||
testing.expectEqual('foo bar baz', p1.className);
|
testing.expectEqual('foo bar baz', p1.className);
|
||||||
|
|||||||
Reference in New Issue
Block a user