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

Side by Side Diff: LayoutTests/fast/dom/DocumentFragment/sibling-rules-under-document-fragment.html

Issue 270503006: Make pseudo-classes selector queries work on DocumentFragment (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address Esprehn's comments Created 6 years, 7 months 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/DocumentFragment/sibling-rules-under-document-fragment-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <script src="../../../resources/js-test.js"></script>
2 <script>
3 description('Tests :first-child rule under DocumentFragment.');
4
5 var fragment = document.createDocumentFragment();
6 var div = document.createElement('div');
7 var a1 = document.createElement('a');
8 var a2 = document.createElement('a');
9
10 fragment.appendChild(a1);
11 div.appendChild(a2);
12
13 var fragmentSelected = fragment.querySelector('a:first-child');
14 var elementSelected = div.querySelector('a:first-child');
15
16 shouldBe("fragmentSelected", "a1");
17 shouldBe("elementSelected", "a2");
18 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/DocumentFragment/sibling-rules-under-document-fragment-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698