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

Unified Diff: third_party/WebKit/LayoutTests/svg/css/script-tests/scientific-numbers.js

Issue 1441233006: Move remaining SVG properties into CSSPropertyParser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add tests for opacity+percentage combination Created 5 years, 1 month 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/css/script-tests/scientific-numbers.js
diff --git a/third_party/WebKit/LayoutTests/svg/css/script-tests/scientific-numbers.js b/third_party/WebKit/LayoutTests/svg/css/script-tests/scientific-numbers.js
index 938cc2a703890e6da07b22fb3b6d3a56bb1991f8..3b46d216098914a8c13c3d8aad4101d7327f3980 100644
--- a/third_party/WebKit/LayoutTests/svg/css/script-tests/scientific-numbers.js
+++ b/third_party/WebKit/LayoutTests/svg/css/script-tests/scientific-numbers.js
@@ -21,43 +21,43 @@ function test(valueString, expectedValue) {
debug("");
debug("Test positive exponent values with 'e'");
-test(".5e2", "50px");
-test("5e1", "50px");
-test("0.5e2", "50px");
-test("+.5e2", "50px");
-test("+5e1", "50px");
-test("+0.5e2", "50px");
-test(".5e+2", "50px");
-test("5e+1", "50px");
-test("0.5e+2", "50px");
+test(".5e2", "50");
+test("5e1", "50");
+test("0.5e2", "50");
+test("+.5e2", "50");
+test("+5e1", "50");
+test("+0.5e2", "50");
+test(".5e+2", "50");
+test("5e+1", "50");
+test("0.5e+2", "50");
debug("");
debug("Test positive exponent values with 'E'");
-test(".5E2", "50px");
-test("5E1", "50px");
-test("0.5E2", "50px");
-test("+.5E2", "50px");
-test("+5E1", "50px");
-test("+0.5E2", "50px");
-test(".5E+2", "50px");
-test("5E+1", "50px");
-test("0.5E+2", "50px");
+test(".5E2", "50");
+test("5E1", "50");
+test("0.5E2", "50");
+test("+.5E2", "50");
+test("+5E1", "50");
+test("+0.5E2", "50");
+test(".5E+2", "50");
+test("5E+1", "50");
+test("0.5E+2", "50");
debug("");
debug("Test negative exponent values with 'e'");
-test("5000e-2", "50px");
-test("500e-1", "50px");
-test("+5000e-2", "50px");
-test("+500e-1", "50px");
+test("5000e-2", "50");
+test("500e-1", "50");
+test("+5000e-2", "50");
+test("+500e-1", "50");
test("+5000e-2px", "50px");
test("+500e-1px", "50px");
debug("");
debug("Test negative exponent values with 'E'");
-test("5000E-2", "50px");
-test("500E-1", "50px");
-test("+5000E-2", "50px");
-test("+500E-1", "50px");
+test("5000E-2", "50");
+test("500E-1", "50");
+test("+5000E-2", "50");
+test("+500E-1", "50");
test("+5000.00E-2px", "50px");
test("+500E-1px", "50px");
@@ -77,8 +77,8 @@ test("50ex", "50ex");
debug("");
debug("Trailing and leading whitespaces");
-test(" 5e1", "50px");
-test("5e1 ", "50px");
+test(" 5e1", "50");
+test("5e1 ", "50");
debug("");
debug("Test behavior on overflow");

Powered by Google App Engine
This is Rietveld 408576698