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

Unified Diff: third_party/WebKit/LayoutTests/svg/dom/SVGLength-viewport-units-expected.txt

Issue 1544543003: Adding support of viewport units to SVG (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Aligne with review comments Created 5 years 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: third_party/WebKit/LayoutTests/svg/dom/SVGLength-viewport-units-expected.txt
diff --git a/third_party/WebKit/LayoutTests/svg/dom/SVGLength-viewport-units-expected.txt b/third_party/WebKit/LayoutTests/svg/dom/SVGLength-viewport-units-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..bc3623b79b848a961630706df0ab84958a22f453
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/svg/dom/SVGLength-viewport-units-expected.txt
@@ -0,0 +1,41 @@
+This test checks the Viewport Units for SVGLength
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+
+Tests the vw unit
+PASS svgElement.width.baseVal.value is 10 * viewportWidthPercent()
+PASS svgElement.width.baseVal.valueInSpecifiedUnits is 10
+PASS svgElement.width.baseVal.valueAsString = '2vw' threw exception SyntaxError: Failed to set the 'valueAsString' property on 'SVGLength': The value provided ('2vw') is invalid..
+PASS svgElement.width.baseVal.valueInSpecifiedUnits = '2' did not throw exception.
+PASS svgElement.width.baseVal.value is 2 * viewportWidthPercent()
+PASS svgElement.width.baseVal.unitType is SVGLength.SVG_LENGTHTYPE_UNKNOWN
+
+Tests the vh unit
+PASS svgElement.width.baseVal.value is 10 * viewportHeightPercent()
+PASS svgElement.width.baseVal.valueInSpecifiedUnits is 10
+PASS svgElement.width.baseVal.valueAsString = '2vh' threw exception SyntaxError: Failed to set the 'valueAsString' property on 'SVGLength': The value provided ('2vh') is invalid..
+PASS svgElement.width.baseVal.valueInSpecifiedUnits = '2' did not throw exception.
+PASS svgElement.width.baseVal.value is 2 * viewportHeightPercent()
+PASS svgElement.width.baseVal.unitType is SVGLength.SVG_LENGTHTYPE_UNKNOWN
+
+Tests the vmin unit
+PASS svgElement.width.baseVal.value is 10 * viewportMinPercent()
+PASS svgElement.width.baseVal.valueInSpecifiedUnits is 10
+PASS svgElement.width.baseVal.valueAsString = '2vmin' threw exception SyntaxError: Failed to set the 'valueAsString' property on 'SVGLength': The value provided ('2vmin') is invalid..
+PASS svgElement.width.baseVal.valueInSpecifiedUnits = '2' did not throw exception.
+PASS svgElement.width.baseVal.value is 2 * viewportMinPercent()
+PASS svgElement.width.baseVal.unitType is SVGLength.SVG_LENGTHTYPE_UNKNOWN
+
+Tests the vmax unit
+PASS svgElement.width.baseVal.value is 10 * viewportMaxPercent()
+PASS svgElement.width.baseVal.valueInSpecifiedUnits is 10
+PASS svgElement.width.baseVal.valueAsString = '2vmax' threw exception SyntaxError: Failed to set the 'valueAsString' property on 'SVGLength': The value provided ('2vmax') is invalid..
+PASS svgElement.width.baseVal.valueInSpecifiedUnits = '2' did not throw exception.
+PASS svgElement.width.baseVal.value is 2 * viewportMaxPercent()
+PASS svgElement.width.baseVal.unitType is SVGLength.SVG_LENGTHTYPE_UNKNOWN
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698