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

Side by Side Diff: LayoutTests/fast/dom/HTMLElement/attr-missing-parent-ancestor-missing.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"> 10 <div id="div">
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 parent/ancestor\'s contentEditable is also missi ng.') 18 description('When contentEditable is missing, it maps to "inherit" state and the element is NOT editable if its parent/ancestor\'s contentEditable is also missi ng.')
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698