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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/Selection/missing-arguments.html

Issue 1785663002: Make setBaseAndExtent's arguments non-optional (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use collapse() where possible (one test) Created 4 years, 8 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
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 <script> 7 <script>
8 var selection = getSelection(); 8 var selection = getSelection();
9 var node = document.body;
9 shouldThrow("selection.addRange()"); 10 shouldThrow("selection.addRange()");
10 shouldThrow("selection.getRangeAt()"); 11 shouldThrow("selection.getRangeAt()");
11 shouldThrow("selection.selectAllChildren()"); 12 shouldThrow("selection.selectAllChildren()");
13 shouldThrow("selection.setBaseAndExtent()");
14 shouldThrow("selection.setBaseAndExtent(node)");
15 shouldThrow("selection.setBaseAndExtent(node, 0)");
16 shouldThrow("selection.setBaseAndExtent(node, 0, node)");
12 </script> 17 </script>
13 </body> 18 </body>
14 </html> 19 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698