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

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

Issue 1162453002: [svg2] Make SVGLength wrap a CSSPrimitiveValue (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: nit Created 5 years, 7 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..eb35753073f6ad7721f639373cde72c59ff4fb47 100644
--- a/LayoutTests/svg/dom/script-tests/SVGLength.js
+++ b/LayoutTests/svg/dom/script-tests/SVGLength.js
@@ -71,12 +71,14 @@ shouldBe("length.value", "2");
shouldBe("length.valueInSpecifiedUnits", "2");
shouldBe("length.unitType", "SVGLength.SVG_LENGTHTYPE_PX");
-shouldThrow("length.valueAsString = '1pX'");
-shouldBeEqualToString("length.valueAsString", "2px");
-shouldBe("length.value", "2");
-shouldBe("length.valueInSpecifiedUnits", "2");
+shouldNotThrow("length.valueAsString = '1pX'");
+shouldBeEqualToString("length.valueAsString", "1px");
+shouldBe("length.value", "1");
+shouldBe("length.valueInSpecifiedUnits", "1");
shouldBe("length.unitType", "SVGLength.SVG_LENGTHTYPE_PX");
+length.valueAsString = "2px"; // reset to 2px
+
shouldThrow("length.valueAsString = ',5 em'");
shouldBeEqualToString("length.valueAsString", "2px");
shouldBe("length.value", "2");
« no previous file with comments | « LayoutTests/svg/dom/length-list-parser-expected.txt ('k') | Source/core/animation/LengthSVGInterpolation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698