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

Side by Side Diff: LayoutTests/fast/dom/shadow/get-destination-insertion-points-re-distribution.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 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../js/resources/js-test-pre.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 <script src="resources/shadow-dom.js"></script> 5 <script src="resources/shadow-dom.js"></script>
6 </head> 6 </head>
7 <body> 7 <body>
8 <script> 8 <script>
9 description("Tests for getDestinationInsertionPoints() which involves re-distrib ution."); 9 description("Tests for getDestinationInsertionPoints() which involves re-distrib ution.");
10 10
11 document.body.appendChild( 11 document.body.appendChild(
12 createDOM('div', {}, 12 createDOM('div', {},
13 createDOM('div', {'id': 'host-1'}, 13 createDOM('div', {'id': 'host-1'},
14 createShadowRoot( 14 createShadowRoot(
15 createDOM('div', {'id': 'host-2'}, 15 createDOM('div', {'id': 'host-2'},
16 createShadowRoot( 16 createShadowRoot(
17 createDOM('content', {'id': 'content-2 '})), 17 createDOM('content', {'id': 'content-2 '})),
18 createDOM('content', {'id': 'content-1'})) ), 18 createDOM('content', {'id': 'content-1'})) ),
19 createDOM('div', {'id': 'child-1'})))); 19 createDOM('div', {'id': 'child-1'}))));
20 20
21 shouldBeEqualAsArray(document.getElementById('child-1').getDestinationInsertionP oints(), 21 shouldBeEqualAsArray(document.getElementById('child-1').getDestinationInsertionP oints(),
22 [getNodeInTreeOfTrees('host-1/content-1'), getNodeInTreeOfT rees('host-1/host-2/content-2')]); 22 [getNodeInTreeOfTrees('host-1/content-1'), getNodeInTreeOfT rees('host-1/host-2/content-2')]);
23 </script> 23 </script>
24 </body> 24 </body>
25 </html> 25 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698