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

Side by Side Diff: LayoutTests/fast/dom/Range/select-node-different-document.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 </head> 5 </head>
6 <body> 6 <body>
7 <body> 7 <body>
8 <iframe src="about:blank"></iframe> 8 <iframe src="about:blank"></iframe>
9 <script> 9 <script>
10 description("Test whether Range.selectNode and Range.selectNodeContents work acr oss documents"); 10 description("Test whether Range.selectNode and Range.selectNodeContents work acr oss documents");
11 11
12 var otherDocument = document.implementation.createDocument(null, "doc", null); 12 var otherDocument = document.implementation.createDocument(null, "doc", null);
13 var elem = otherDocument.createElement("elem"); 13 var elem = otherDocument.createElement("elem");
14 otherDocument.documentElement.appendChild(elem); 14 otherDocument.documentElement.appendChild(elem);
(...skipping 11 matching lines...) Expand all
26 selectNodeContentsRange.selectNodeContents(elem); 26 selectNodeContentsRange.selectNodeContents(elem);
27 27
28 shouldBeTrue("selectNodeRange.startContainer === otherDocument.documentElement") ; 28 shouldBeTrue("selectNodeRange.startContainer === otherDocument.documentElement") ;
29 shouldBeTrue("selectNodeRange.endContainer === otherDocument.documentElement"); 29 shouldBeTrue("selectNodeRange.endContainer === otherDocument.documentElement");
30 shouldBeTrue("selectNodeContentsRange.startContainer.ownerDocument === otherDocu ment"); 30 shouldBeTrue("selectNodeContentsRange.startContainer.ownerDocument === otherDocu ment");
31 shouldBeTrue("selectNodeContentsRange.endContainer.ownerDocument === otherDocume nt"); 31 shouldBeTrue("selectNodeContentsRange.endContainer.ownerDocument === otherDocume nt");
32 shouldBeTrue("selectNodeRange.cloneContents().ownerDocument === otherDocument"); 32 shouldBeTrue("selectNodeRange.cloneContents().ownerDocument === otherDocument");
33 </script> 33 </script>
34 </body> 34 </body>
35 </html> 35 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/Range/script-tests/TEMPLATE.html ('k') | LayoutTests/fast/dom/Range/set-wrong-document-err.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698