OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 | 2 |
3 <html> | 3 <html> |
4 <body> | 4 <body> |
5 <script src="../../fast/dom/resources/event-sender-util.js"></script> | 5 <script src="../../fast/dom/resources/event-sender-util.js"></script> |
6 <script src="../../fast/js/resources/js-test-pre.js"></script> | 6 <script src="../../resources/js-test.js"></script> |
7 | 7 |
8 <p>On the second time selecting <span>, it should not become non-contented
itable. | 8 <p>On the second time selecting <span>, it should not become non-contented
itable. |
9 If it becomes non-contenteditable, the selection from <span> to <table&
gt; | 9 If it becomes non-contenteditable, the selection from <span> to <table&
gt; |
10 will break editing boundaries and contain "a". | 10 will break editing boundaries and contain "a". |
11 This test checks the <span> does not changed to non-contenteditable elemen
t.</p> | 11 This test checks the <span> does not changed to non-contenteditable elemen
t.</p> |
12 | 12 |
13 <div id="host" contenteditable></div> | 13 <div id="host" contenteditable></div> |
14 <pre id="console"></pre> | 14 <pre id="console"></pre> |
15 | 15 |
16 <script> | 16 <script> |
(...skipping 28 matching lines...) Expand all Loading... |
45 return str.indexOf(key) >= 0; | 45 return str.indexOf(key) >= 0; |
46 } | 46 } |
47 | 47 |
48 var selectedString = shadowRoot.getSelection().toString(); | 48 var selectedString = shadowRoot.getSelection().toString(); |
49 shouldBeFalse('contains(selectedString, "a")'); | 49 shouldBeFalse('contains(selectedString, "a")'); |
50 | 50 |
51 var successfullyParsed = true; | 51 var successfullyParsed = true; |
52 </script> | 52 </script> |
53 </body> | 53 </body> |
54 </html> | 54 </html> |
OLD | NEW |