OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../js/resources/js-test-pre.js"></script> | 4 <script src="../../../resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <p id="description"></p> | 7 <p id="description"></p> |
8 <div id="console"></div> | 8 <div id="console"></div> |
9 <div id="result"></div> | 9 <div id="result"></div> |
10 <div id="div" contentEditable="false"> | 10 <div id="div" contentEditable="false"> |
11 <div> | 11 <div> |
12 <div> | 12 <div> |
13 <p id="p"></p> | 13 <p id="p"></p> |
14 </div> | 14 </div> |
15 </div> | 15 </div> |
16 </div> | 16 </div> |
17 <script> | 17 <script> |
18 description('When contentEditable is missing, it maps to "inherit" state and the
element is NOT editable if its nearest ancestor is NOT.') | 18 description('When contentEditable is missing, it maps to "inherit" state and the
element is NOT editable if its nearest ancestor is NOT.') |
19 | 19 |
20 shouldBe('document.getElementById("p").hasAttribute("contentEditable")', 'false'
); | 20 shouldBe('document.getElementById("p").hasAttribute("contentEditable")', 'false'
); |
21 shouldBe('document.getElementById("p").contentEditable', '"inherit"'); | 21 shouldBe('document.getElementById("p").contentEditable', '"inherit"'); |
22 shouldBe('document.getElementById("p").isContentEditable', 'false'); | 22 shouldBe('document.getElementById("p").isContentEditable', 'false'); |
23 shouldBe('window.getComputedStyle(p, "").getPropertyValue("-webkit-user-modify")
', '"read-only"'); | 23 shouldBe('window.getComputedStyle(p, "").getPropertyValue("-webkit-user-modify")
', '"read-only"'); |
24 | 24 |
25 document.getElementById("div").style.display= 'none'; | 25 document.getElementById("div").style.display= 'none'; |
26 </script> | 26 </script> |
27 </body> | 27 </body> |
28 </html> | 28 </html> |
OLD | NEW |