OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="resources/util.js"></script> | 4 <script src="resources/util.js"></script> |
5 <script src="../../fast/js/resources/js-test-pre.js"></script> | 5 <script src="../../fast/js/resources/js-test-pre.js"></script> |
6 </head> | 6 </head> |
7 <body> | 7 <body> |
8 <pre id="console"></pre> | 8 <pre id="console"></pre> |
9 <iframe id="frame1" src="data:text/html,<body contenteditable></body>"></iframe> | 9 <iframe id="frame1" src="data:text/html,<body contenteditable></body>"></iframe> |
10 <iframe id="frame2" src="data:text/html,<body contenteditable></body>"></iframe> | 10 <iframe id="frame2" src="data:text/html,<body contenteditable></body>"></iframe> |
(...skipping 17 matching lines...) Expand all Loading... |
28 frame2.contentWindow.document.body.appendChild(testEditable2); | 28 frame2.contentWindow.document.body.appendChild(testEditable2); |
29 testEditable1.focus(); | 29 testEditable1.focus(); |
30 frame1.contentWindow.document.execCommand("InsertText", false, "zz"); | 30 frame1.contentWindow.document.execCommand("InsertText", false, "zz"); |
31 shouldBe('internals.markerCountForNode(testEditable1.childNodes[0], "spellin
g")', '0'); | 31 shouldBe('internals.markerCountForNode(testEditable1.childNodes[0], "spellin
g")', '0'); |
32 testEditable2.focus(); | 32 testEditable2.focus(); |
33 shouldBe('internals.markerCountForNode(testEditable1.childNodes[0], "spellin
g")', '1'); | 33 shouldBe('internals.markerCountForNode(testEditable1.childNodes[0], "spellin
g")', '1'); |
34 } else { | 34 } else { |
35 log("Automatic testing impossible. Test manually. See steps in the descripti
on."); | 35 log("Automatic testing impossible. Test manually. See steps in the descripti
on."); |
36 } | 36 } |
37 </script> | 37 </script> |
38 <script src="../../fast/js/resources/js-test-post.js"></script> | |
39 </body> | 38 </body> |
40 </html> | 39 </html> |
OLD | NEW |