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

Side by Side Diff: LayoutTests/fast/dom/Range/set-wrong-document-err.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 <body> 2 <body>
3 <script src="../../js/resources/js-test-pre.js"></script> 3 <script src="../../../resources/js-test.js"></script>
4 <script> 4 <script>
5 5
6 function newRange() { 6 function newRange() {
7 var range = document.createRange(); 7 var range = document.createRange();
8 range.selectNodeContents(iframe); 8 range.selectNodeContents(iframe);
9 return range; 9 return range;
10 } 10 }
11 11
12 function checkRange() { 12 function checkRange() {
13 shouldBe("range.startContainer", "iframe.contentDocument.body"); 13 shouldBe("range.startContainer", "iframe.contentDocument.body");
(...skipping 30 matching lines...) Expand all
44 shouldNotThrow("range.setEndAfter(iframe.contentDocument.body.firstChild)"); 44 shouldNotThrow("range.setEndAfter(iframe.contentDocument.body.firstChild)");
45 checkRange(); 45 checkRange();
46 46
47 window.range = newRange(); 47 window.range = newRange();
48 shouldNotThrow("range.setEndBefore(iframe.contentDocument.body.firstChild)"); 48 shouldNotThrow("range.setEndBefore(iframe.contentDocument.body.firstChild)");
49 checkRange(); 49 checkRange();
50 50
51 iframe.parentNode.removeChild(iframe); 51 iframe.parentNode.removeChild(iframe);
52 </script> 52 </script>
53 </body> 53 </body>
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/Range/select-node-different-document.html ('k') | LayoutTests/fast/dom/Range/split-text-in-range.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698