Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(601)

Side by Side Diff: LayoutTests/fast/dom/Text/previous-element-sibling.html

Issue 799523002: Split NonDocumentTypeChildNode from ChildNode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script> 2 <script src="../../../resources/js-test.js"></script>
3 <script> 3 <script>
4 4
5 description('This tests the ChildNode interface previousElementSibling property on a Text node.'); 5 description('This tests the NonDocumentTypeChildNode interface previousElementSi bling property on a Text node.');
6 6
7 var element = document.createElement('div'); 7 var element = document.createElement('div');
8 var a = element.appendChild(new Text('a')); 8 var a = element.appendChild(new Text('a'));
9 shouldBeNull('a.previousElementSibling'); 9 shouldBeNull('a.previousElementSibling');
10 var b = element.insertBefore(document.createElement('b'), a); 10 var b = element.insertBefore(document.createElement('b'), a);
11 shouldBe('a.previousElementSibling', 'b'); 11 shouldBe('a.previousElementSibling', 'b');
12 var c = element.insertBefore(new Comment('c'), a); 12 var c = element.insertBefore(new Comment('c'), a);
13 shouldBe('a.previousElementSibling', 'b'); 13 shouldBe('a.previousElementSibling', 'b');
14 14
15 </script> 15 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698