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

Unified Diff: LayoutTests/svg/css/parse-length-expected.txt

Issue 896773002: [svg2] Make 'x' and 'y' presentation attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: cleanup Created 5 years, 10 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/css/parse-length-expected.txt
diff --git a/LayoutTests/svg/css/parse-length-expected.txt b/LayoutTests/svg/css/parse-length-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..6686f4f9c26339c1fec9ba8bf6d4ba2722195fdc
--- /dev/null
+++ b/LayoutTests/svg/css/parse-length-expected.txt
@@ -0,0 +1,41 @@
+CONSOLE ERROR: Error: Invalid value for <rect> attribute x="auto"
+CONSOLE ERROR: Error: Invalid value for <rect> attribute x="100 px"
+CONSOLE ERROR: Error: Invalid value for <rect> attribute x="100px;"
+CONSOLE ERROR: Error: Invalid value for <rect> attribute x="100px !important"
+CONSOLE ERROR: Error: Invalid value for <rect> attribute x="{ 100px }"
+CONSOLE ERROR: Error: Invalid value for <rect> attribute y="auto"
+CONSOLE ERROR: Error: Invalid value for <rect> attribute y="100 px"
+CONSOLE ERROR: Error: Invalid value for <rect> attribute y="100px;"
+CONSOLE ERROR: Error: Invalid value for <rect> attribute y="100px !important"
+CONSOLE ERROR: Error: Invalid value for <rect> attribute y="{ 100px }"
+Test that 'length' presentation attribute values are parsed with CSS presentation rules.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS computedStyle("x", " 100") is "100px"
+PASS computedStyle("x", "100 ") is "100px"
+PASS computedStyle("x", "100px") is "100px"
+PASS computedStyle("x", "1em") is "16px"
+PASS computedStyle("x", "20%") is "20%"
+PASS computedStyle("x", "-200px") is "-200px"
+PASS computedStyle("y", " 100") is "100px"
+PASS computedStyle("y", "100 ") is "100px"
+PASS computedStyle("y", "100px") is "100px"
+PASS computedStyle("y", "1em") is "16px"
+PASS computedStyle("y", "20%") is "20%"
+PASS computedStyle("y", "-200px") is "-200px"
+PASS computedStyle("x", "auto") is "0px"
+PASS computedStyle("x", "100 px") is "0px"
+PASS computedStyle("x", "100px;") is "0px"
+PASS computedStyle("x", "100px !important") is "0px"
+PASS computedStyle("x", "{ 100px }") is "0px"
+PASS computedStyle("y", "auto") is "0px"
+PASS computedStyle("y", "100 px") is "0px"
+PASS computedStyle("y", "100px;") is "0px"
+PASS computedStyle("y", "100px !important") is "0px"
+PASS computedStyle("y", "{ 100px }") is "0px"
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698