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

Side by Side Diff: LayoutTests/fast/dom/Range/range-detached-exceptions.html

Issue 108063005: Make arguments to Range methods non-optional (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years 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="../../../resources/js-test.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <!-- hidden area to create the ranges being tested --> 7 <!-- hidden area to create the ranges being tested -->
8 <div style="visibility: hidden"> 8 <div style="visibility: hidden">
9 <div id=a1>a1 9 <div id=a1>a1
10 <div id=b1>b1</div> 10 <div id=b1>b1</div>
(...skipping 20 matching lines...) Expand all
31 shouldThrow("range.compareBoundaryPoints(Range.START_TO_END, range)", ex ecute("compareBoundaryPoints")); 31 shouldThrow("range.compareBoundaryPoints(Range.START_TO_END, range)", ex ecute("compareBoundaryPoints"));
32 shouldThrow("range.comparePoint(document.getElementById('b1'), 1)", exec ute("comparePoint")); 32 shouldThrow("range.comparePoint(document.getElementById('b1'), 1)", exec ute("comparePoint"));
33 shouldThrow("range.createContextualFragment('p')", execute("createContex tualFragment")); 33 shouldThrow("range.createContextualFragment('p')", execute("createContex tualFragment"));
34 shouldThrow("range.deleteContents()", execute("deleteContents")); 34 shouldThrow("range.deleteContents()", execute("deleteContents"));
35 shouldThrow("range.detach()", execute("detach")); 35 shouldThrow("range.detach()", execute("detach"));
36 shouldThrow("range.endContainer", read("endContainer")); 36 shouldThrow("range.endContainer", read("endContainer"));
37 shouldThrow("range.endOffset", read("endOffset")); 37 shouldThrow("range.endOffset", read("endOffset"));
38 shouldThrow("range.extractContents()", execute("extractContents")); 38 shouldThrow("range.extractContents()", execute("extractContents"));
39 shouldThrow("range.insertNode(document.getElementById('b1'))", execute(" insertNode")); 39 shouldThrow("range.insertNode(document.getElementById('b1'))", execute(" insertNode"));
40 shouldThrow("range.intersectsNode(document.getElementById('b1'))", execu te("intersectsNode")); 40 shouldThrow("range.intersectsNode(document.getElementById('b1'))", execu te("intersectsNode"));
41 shouldThrow("range.isPointInRange(document.getElementById('b1'))", execu te("isPointInRange")); 41 shouldThrow("range.isPointInRange(document.getElementById('b1'), 0)", ex ecute("isPointInRange"));
42 shouldThrow("range.selectNode(document.getElementById('b1'))", execute(" selectNode")); 42 shouldThrow("range.selectNode(document.getElementById('b1'))", execute(" selectNode"));
43 shouldThrow("range.selectNodeContents(document.getElementById('b1'))", e xecute("selectNodeContents")); 43 shouldThrow("range.selectNodeContents(document.getElementById('b1'))", e xecute("selectNodeContents"));
44 shouldThrow("range.setEnd(document.getElementById('b1'))", execute("setE nd")); 44 shouldThrow("range.setEnd(document.getElementById('b1'), 0)", execute("s etEnd"));
45 shouldThrow("range.setStart(document.getElementById('b1'))", execute("se tStart")); 45 shouldThrow("range.setStart(document.getElementById('b1'), 0)", execute( "setStart"));
46 shouldThrow("range.startContainer", read("startContainer")); 46 shouldThrow("range.startContainer", read("startContainer"));
47 shouldThrow("range.startOffset", read("startOffset")); 47 shouldThrow("range.startOffset", read("startOffset"));
48 shouldThrow("range.surroundContents(document.getElementById('b1'))", exe cute("surroundContents")); 48 shouldThrow("range.surroundContents(document.getElementById('b1'))", exe cute("surroundContents"));
49 shouldThrow("range.toString()", execute("toString")); 49 shouldThrow("range.toString()", execute("toString"));
50 </script> 50 </script>
51 </body> 51 </body>
52 </html> 52 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698