Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Text / next-element-sibling.html
blobbcd2ec0b226dc87fa2c044949043b3151daf235a
1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script>
3 <script>
5 description('This tests the NonDocumentTypeChildNode interface nextElementSibling property on a Text node.');
7 var element = document.createElement('div');
8 var a = element.appendChild(new Text('a'));
9 shouldBeNull('a.nextElementSibling');
10 var b = element.appendChild(document.createElement('b'));
11 shouldBe('a.nextElementSibling', 'b');
12 var c = element.insertBefore(new Comment('c'), b);
13 shouldBe('a.nextElementSibling', 'b');
15 </script>