|
1 <!DOCTYPE html> |
|
2 <html class="reftest-wait"> |
|
3 <head> |
|
4 <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script> |
|
5 </head> |
|
6 <body> |
|
7 <iframe src="data:text/html,<body contenteditable spellcheck=false></body>"></iframe> |
|
8 <script> |
|
9 onload = function() { |
|
10 var i = document.querySelector("iframe"); |
|
11 var d = i.contentDocument; |
|
12 var w = i.contentWindow; |
|
13 var s = w.getSelection(); |
|
14 i.focus(); |
|
15 d.body.contentEditable = false; |
|
16 d.designMode = "off"; |
|
17 d.designMode = "on"; |
|
18 d.body.focus(); |
|
19 synthesizeKey("x", {}); |
|
20 s.collapse(d.body.firstChild, 1); |
|
21 synthesizeKey("x", {}); |
|
22 setTimeout(function() { |
|
23 document.documentElement.removeAttribute("class"); |
|
24 }, 0); |
|
25 }; |
|
26 </script> |
|
27 </body> |
|
28 </html> |