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

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

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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="../../js/resources/js-test-pre.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 ChildNode interface previousElementSibling 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
« no previous file with comments | « LayoutTests/fast/dom/StyleSheet/script-tests/TEMPLATE.html ('k') | LayoutTests/fast/dom/Text/remove.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698