Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Side by Side Diff: LayoutTests/fast/dom/HTMLElement/set-inherit-parent-true.html

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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="true"> 10 <div id="div" contenteditable="true">
11 <p id="p" contenteditable="false"></p> 11 <p id="p" contenteditable="false"></p>
12 </div> 12 </div>
13 <script> 13 <script>
14 description('When contentEditable is set to "inherit", the attribute must be rem oved and element.contentEditable should return "inherit".') 14 description('When contentEditable is set to "inherit", the attribute must be rem oved and element.contentEditable should return "inherit".')
15 15
16 document.getElementById("p").contentEditable = "inherit"; 16 document.getElementById("p").contentEditable = "inherit";
17 17
18 shouldBe('document.getElementById("p").hasAttribute("contentEditable")','false') ; 18 shouldBe('document.getElementById("p").hasAttribute("contentEditable")','false') ;
19 shouldBe('document.getElementById("p").contentEditable', '"inherit"'); 19 shouldBe('document.getElementById("p").contentEditable', '"inherit"');
20 shouldBe('document.getElementById("p").isContentEditable', 'true'); 20 shouldBe('document.getElementById("p").isContentEditable', 'true');
21 debug("FIXME: setContentEditable with true/false/inherit string is not working p roperly. https://bugs.webkit.org/show_bug.cgi?id=52058"); 21 debug("FIXME: setContentEditable with true/false/inherit string is not working p roperly. https://bugs.webkit.org/show_bug.cgi?id=52058");
22 shouldBe('window.getComputedStyle(p, "").getPropertyValue("-webkit-user-modify") ', '"read-write"'); 22 shouldBe('window.getComputedStyle(p, "").getPropertyValue("-webkit-user-modify") ', '"read-write"');
23 23
24 document.getElementById("div").style.display= 'none'; 24 document.getElementById("div").style.display= 'none';
25 </script> 25 </script>
26 </body> 26 </body>
27 </html> 27 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698