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

Side by Side Diff: LayoutTests/svg/css/script-tests/scientific-numbers.js

Issue 1128193002: Ignore declarations with out of range numeric values (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix test 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 unified diff | Download patch
OLDNEW
1 description("Test scientific numbers on <length> values for SVG presentation att ributes.") 1 description("Test scientific numbers on <length> values for SVG presentation att ributes.")
2 if (window.testRunner) 2 if (window.testRunner)
3 testRunner.dumpAsText(); 3 testRunner.dumpAsText();
4 createSVGTestCase(); 4 createSVGTestCase();
5 5
6 var text = createSVGElement("text"); 6 var text = createSVGElement("text");
7 text.setAttribute("id", "text"); 7 text.setAttribute("id", "text");
8 text.setAttribute("x", "100px"); 8 text.setAttribute("x", "100px");
9 text.setAttribute("y", "100px"); 9 text.setAttribute("y", "100px");
10 rootSVGElement.appendChild(text); 10 rootSVGElement.appendChild(text);
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 debug("Test if value and 'ex' still works"); 75 debug("Test if value and 'ex' still works");
76 test("50ex", "50ex"); 76 test("50ex", "50ex");
77 77
78 debug(""); 78 debug("");
79 debug("Trailing and leading whitespaces"); 79 debug("Trailing and leading whitespaces");
80 test(" 5e1", "50px"); 80 test(" 5e1", "50px");
81 test("5e1 ", "50px"); 81 test("5e1 ", "50px");
82 82
83 debug(""); 83 debug("");
84 debug("Test behavior on overflow"); 84 debug("Test behavior on overflow");
85 test("2E+500", "0px"); 85 test("2E+500", "baseline");
86 test("-2E+500", "0px"); 86 test("-2E+500", "baseline");
87 87
88 debug(""); 88 debug("");
89 debug("Invalid values"); 89 debug("Invalid values");
90 test("50e0.0", "baseline"); 90 test("50e0.0", "baseline");
91 test("50 e0", "baseline"); 91 test("50 e0", "baseline");
92 test("50e 0", "baseline"); 92 test("50e 0", "baseline");
93 test("50.e0", "baseline"); 93 test("50.e0", "baseline");
94 94
95 var successfullyParsed = true; 95 var successfullyParsed = true;
96 96
97 completeTest(); 97 completeTest();
OLDNEW
« no previous file with comments | « LayoutTests/svg/css/scientific-numbers-expected.txt ('k') | Source/core/css/parser/CSSParserValues.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698