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

Unified Diff: LayoutTests/svg/dom/script-tests/SVGLength.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
Index: LayoutTests/svg/dom/script-tests/SVGLength.js
diff --git a/LayoutTests/svg/dom/script-tests/SVGLength.js b/LayoutTests/svg/dom/script-tests/SVGLength.js
index f979668593460938a9e204ed3ef0d50ef8f25adb..ba7663d12828bd6f62ef890bf10582828766aeb6 100644
--- a/LayoutTests/svg/dom/script-tests/SVGLength.js
+++ b/LayoutTests/svg/dom/script-tests/SVGLength.js
@@ -83,6 +83,12 @@ shouldBe("length.value", "2");
shouldBe("length.valueInSpecifiedUnits", "2");
shouldBe("length.unitType", "SVGLength.SVG_LENGTHTYPE_PX");
+shouldThrow("length.valueAsString = null");
+shouldBeEqualToString("length.valueAsString", "2px");
+shouldBe("length.value", "2");
+shouldBe("length.valueInSpecifiedUnits", "2");
+shouldBe("length.unitType", "SVGLength.SVG_LENGTHTYPE_PX");
+
debug("");
debug("Check setting invalid 'value' arguments");
shouldThrow("length.value = NaN");
« no previous file with comments | « LayoutTests/svg/dom/script-tests/SVGAngle.js ('k') | LayoutTests/svg/dom/svg-element-attribute-js-null.xhtml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698