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