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

Unified Diff: LayoutTests/svg/dom/script-tests/SVGAngle.js

Issue 1234383003: Removing TreatNullAs=NullString from SVGAngle.valueAsString and SVGLength.valueAsString attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 | « LayoutTests/svg/dom/SVGLength-expected.txt ('k') | LayoutTests/svg/dom/script-tests/SVGLength.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/dom/script-tests/SVGAngle.js
diff --git a/LayoutTests/svg/dom/script-tests/SVGAngle.js b/LayoutTests/svg/dom/script-tests/SVGAngle.js
index 295f87f51f7965dae440ee6abdcbe002487f5f5e..9d4571c2559af38850fe2409d9a61eed8aa91b21 100644
--- a/LayoutTests/svg/dom/script-tests/SVGAngle.js
+++ b/LayoutTests/svg/dom/script-tests/SVGAngle.js
@@ -145,6 +145,12 @@ shouldBe("angle.value", "0");
shouldBe("angle.valueInSpecifiedUnits", "0");
shouldBe("angle.unitType", "SVGAngle.SVG_ANGLETYPE_UNSPECIFIED");
+shouldThrow("angle.valueAsString = null");
+shouldBeEqualToString("angle.valueAsString", "0");
+shouldBe("angle.value", "0");
+shouldBe("angle.valueInSpecifiedUnits", "0");
+shouldBe("angle.unitType", "SVGAngle.SVG_ANGLETYPE_UNSPECIFIED");
+
debug("");
debug("Check setting invalid 'valueInSpecifiedUnits' arguments");
shouldThrow("angle.valueInSpecifiedUnits = 'test'");
« no previous file with comments | « LayoutTests/svg/dom/SVGLength-expected.txt ('k') | LayoutTests/svg/dom/script-tests/SVGLength.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698