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

Side by Side Diff: LayoutTests/fast/css/shorthand-setProperty-important.html

Issue 373043004: IDL: Treat undefined as missing for optional arguments with defaults (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebased Created 6 years, 5 months 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
« no previous file with comments | « no previous file | LayoutTests/fast/css/shorthand-setProperty-important-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <meta charset="utf-8"> 4 <meta charset="utf-8">
5 <script src="../../resources/js-test.js"></script> 5 <script src="../../resources/js-test.js"></script>
6 </head> 6 </head>
7 <body> 7 <body>
8 <script> 8 <script>
9 9
10 description("Verify that the priority parameter is a case-insensitive match to ' important' or the empty string."); 10 description("Verify that the priority parameter is a case-insensitive match to ' important' or the empty string.");
(...skipping 19 matching lines...) Expand all
30 e.style.borderBottomStyle = ""; 30 e.style.borderBottomStyle = "";
31 e.style.setProperty("border-bottom-style", "solid", "impORTANT"); 31 e.style.setProperty("border-bottom-style", "solid", "impORTANT");
32 shouldBe("e.style.getPropertyValue('border-bottom-style')", "'solid'"); 32 shouldBe("e.style.getPropertyValue('border-bottom-style')", "'solid'");
33 shouldBe("e.style.getPropertyPriority('border-bottom-style')", "'important'"); 33 shouldBe("e.style.getPropertyPriority('border-bottom-style')", "'important'");
34 34
35 e.style.borderBottomStyle = ""; 35 e.style.borderBottomStyle = "";
36 e.style.setProperty("border-bottom-style", "solid", "random"); 36 e.style.setProperty("border-bottom-style", "solid", "random");
37 shouldBe("e.style.getPropertyValue('border-bottom-style')", "null"); 37 shouldBe("e.style.getPropertyValue('border-bottom-style')", "null");
38 shouldBe("e.style.getPropertyPriority('border-bottom-style')", "''"); 38 shouldBe("e.style.getPropertyPriority('border-bottom-style')", "''");
39 39
40 e.style.borderBottomStyle = "";
41 e.style.setProperty("border-bottom-style", "solid", "undefined");
42 shouldBe("e.style.getPropertyValue('border-bottom-style')", "null");
43 shouldBe("e.style.getPropertyPriority('border-bottom-style')", "''");
44
45 e.style.borderBottomStyle = "";
46 e.style.setProperty("border-bottom-style", "solid", undefined);
47 shouldBe("e.style.getPropertyValue('border-bottom-style')", "'solid'");
48 shouldBe("e.style.getPropertyPriority('border-bottom-style')", "''");
49
40 document.body.removeChild(testContainer); 50 document.body.removeChild(testContainer);
41 </script> 51 </script>
42 </body> 52 </body>
43 </html> 53 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/css/shorthand-setProperty-important-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698