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 <p id="p"></p> | 11 <p id="p"></p> |
12 </div> | 12 </div> |
13 <script> | 13 <script> |
14 description('When contentEditable is missing, it maps to "inherit" state and the
element is NOT editable if its parent is NOT.') | 14 description('When contentEditable is missing, it maps to "inherit" state and the
element is NOT editable if its parent is NOT.') |
15 | 15 |
16 shouldBe('document.getElementById("p").hasAttribute("contentEditable")','false')
; | 16 shouldBe('document.getElementById("p").hasAttribute("contentEditable")','false')
; |
17 shouldBe('document.getElementById("p").contentEditable', '"inherit"'); | 17 shouldBe('document.getElementById("p").contentEditable', '"inherit"'); |
18 shouldBe('document.getElementById("p").isContentEditable', 'false'); | 18 shouldBe('document.getElementById("p").isContentEditable', 'false'); |
19 shouldBe('window.getComputedStyle(p, "").getPropertyValue("-webkit-user-modify")
', '"read-only"'); | 19 shouldBe('window.getComputedStyle(p, "").getPropertyValue("-webkit-user-modify")
', '"read-only"'); |
20 | 20 |
21 document.getElementById("div").style.display= 'none'; | 21 document.getElementById("div").style.display= 'none'; |
22 </script> | 22 </script> |
23 </body> | 23 </body> |
24 </html> | 24 </html> |
OLD | NEW |