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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/resources/foreign-domain-iframe-for-selection-test.html

Issue 2693813002: Selection API: Some functions should throw InvalidNodeTypeError and IndexSizeError. (Closed)
Patch Set: adjust 2 more tests Created 3 years, 10 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 <html> 1 <html>
2 <head> 2 <head>
3 <script> 3 <script>
4 window.onload = function() { 4 window.onload = function() {
5 var selection = window.getSelection(); 5 var selection = window.getSelection();
6 if (selection.setBaseAndExtent) 6 if (selection.setBaseAndExtent)
7 selection.setBaseAndExtent(document.body, 0, document.body, 10); 7 selection.setBaseAndExtent(document.body, 0, document.body, 1);
8 else if (selection.selectAllChildren) 8 else if (selection.selectAllChildren)
9 selection.selectAllChildren(document.body); 9 selection.selectAllChildren(document.body);
10 } 10 }
11 </script> 11 </script>
12 </head> 12 </head>
13 <body> 13 <body>
14 FOREIGN DOMAIN 14 FOREIGN DOMAIN
15 </body> 15 </body>
16 </html> 16 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698