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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/css/shorthand-setProperty-important-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/css/shorthand-setProperty-important.html
diff --git a/LayoutTests/fast/css/shorthand-setProperty-important.html b/LayoutTests/fast/css/shorthand-setProperty-important.html
index 4864486911d4dc5102860b8df426fd28b6106e86..0e3ff4a090ea8f828e40ae869c1609b69c3c2816 100644
--- a/LayoutTests/fast/css/shorthand-setProperty-important.html
+++ b/LayoutTests/fast/css/shorthand-setProperty-important.html
@@ -37,6 +37,16 @@ e.style.setProperty("border-bottom-style", "solid", "random");
shouldBe("e.style.getPropertyValue('border-bottom-style')", "null");
shouldBe("e.style.getPropertyPriority('border-bottom-style')", "''");
+e.style.borderBottomStyle = "";
+e.style.setProperty("border-bottom-style", "solid", "undefined");
+shouldBe("e.style.getPropertyValue('border-bottom-style')", "null");
+shouldBe("e.style.getPropertyPriority('border-bottom-style')", "''");
+
+e.style.borderBottomStyle = "";
+e.style.setProperty("border-bottom-style", "solid", undefined);
+shouldBe("e.style.getPropertyValue('border-bottom-style')", "'solid'");
+shouldBe("e.style.getPropertyPriority('border-bottom-style')", "''");
+
document.body.removeChild(testContainer);
</script>
</body>
« 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