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

Side by Side Diff: LayoutTests/fast/dom/HTMLElement/attr-invalid-string.html

Issue 48903019: Delete js-test-post.js. (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="../../js/resources/js-test-pre.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="d" contentEditable="abc"></div> 10 <div id="d" contentEditable="abc"></div>
11 <div id="d2" contentEditable="inherit"></div> 11 <div id="d2" contentEditable="inherit"></div>
12 <script> 12 <script>
13 description('When contentEditable attribute is invalid string, element.contentEd itable returns "inherit".') 13 description('When contentEditable attribute is invalid string, element.contentEd itable returns "inherit".')
14 14
15 shouldBe('document.getElementById("d").getAttribute("contentEditable")','"abc"') ; 15 shouldBe('document.getElementById("d").getAttribute("contentEditable")','"abc"') ;
16 shouldBe('document.getElementById("d").contentEditable', '"inherit"'); 16 shouldBe('document.getElementById("d").contentEditable', '"inherit"');
17 shouldBe('document.getElementById("d").isContentEditable', 'false'); 17 shouldBe('document.getElementById("d").isContentEditable', 'false');
18 shouldBe('window.getComputedStyle(d, "").getPropertyValue("-webkit-user-modify") ', '"read-only"'); 18 shouldBe('window.getComputedStyle(d, "").getPropertyValue("-webkit-user-modify") ', '"read-only"');
19 19
20 shouldBe('document.getElementById("d2").getAttribute("contentEditable")','"inher it"'); 20 shouldBe('document.getElementById("d2").getAttribute("contentEditable")','"inher it"');
21 shouldBe('document.getElementById("d2").contentEditable', '"inherit"'); 21 shouldBe('document.getElementById("d2").contentEditable', '"inherit"');
22 shouldBe('document.getElementById("d2").isContentEditable', 'false'); 22 shouldBe('document.getElementById("d2").isContentEditable', 'false');
23 shouldBe('window.getComputedStyle(d2, "").getPropertyValue("-webkit-user-modify" )', '"read-only"'); 23 shouldBe('window.getComputedStyle(d2, "").getPropertyValue("-webkit-user-modify" )', '"read-only"');
24 24
25 document.getElementById("d").style.display= 'none'; 25 document.getElementById("d").style.display= 'none';
26 document.getElementById("d2").style.display= 'none'; 26 document.getElementById("d2").style.display= 'none';
27 </script> 27 </script>
28 <script src="../../js/resources/js-test-post.js"></script>
29 </body> 28 </body>
30 </html> 29 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698