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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/style/apply-style-crash2.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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <body> 3 <body>
4 This test passes if it does not crash. 4 This test passes if it does not crash.
5 <script> 5 <script>
6 if (window.testRunner) 6 if (window.testRunner)
7 testRunner.dumpAsText(); 7 testRunner.dumpAsText();
8 8
9 el1 = document.createElement('li'); 9 el1 = document.createElement('li');
10 document.body.appendChild(el1); 10 document.body.appendChild(el1);
11 el2 = document.createElement('thead'); 11 el2 = document.createElement('thead');
12 el1.appendChild(el2); 12 el1.appendChild(el2);
13 el2.parentNode.insertBefore(document.createElement('video'), el2); 13 el2.parentNode.insertBefore(document.createElement('video'), el2);
14 el2.parentNode.insertBefore(document.createElement('input'), el2); 14 el2.parentNode.insertBefore(document.createElement('input'), el2);
15 document.designMode = 'on'; 15 document.designMode = 'on';
16 window.getSelection().setBaseAndExtent(el1, 2, el2, 4); 16 window.getSelection().setBaseAndExtent(el1, 2, el2, 0);
17 document.designMode = 'off'; 17 document.designMode = 'off';
18 window.getSelection().modify('extend', 'backward', 'character'); 18 window.getSelection().modify('extend', 'backward', 'character');
19 el1.innerHTML = "PASS"; 19 el1.innerHTML = "PASS";
20 document.designMode = 'on'; 20 document.designMode = 'on';
21 document.execCommand('FontSizeDelta', false, '-1px'); 21 document.execCommand('FontSizeDelta', false, '-1px');
22 document.designMode = 'off'; 22 document.designMode = 'off';
23 </script> 23 </script>
24 </body> 24 </body>
25 </html> 25 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698