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

Unified Diff: third_party/WebKit/LayoutTests/svg/parser/whitespace-integer.html

Issue 2721243004: Fix obviously broken SVG parsing test (Closed)
Patch Set: git cl web Created 3 years, 9 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/svg/parser/whitespace-integer-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/svg/parser/whitespace-integer.html
diff --git a/third_party/WebKit/LayoutTests/svg/parser/whitespace-integer.html b/third_party/WebKit/LayoutTests/svg/parser/whitespace-integer.html
index c09d961eb2e498f45ecf343e69e3c86318b79bb8..10b4a30755bcdc2ab45ff93a81ef4c7eb6717be7 100644
--- a/third_party/WebKit/LayoutTests/svg/parser/whitespace-integer.html
+++ b/third_party/WebKit/LayoutTests/svg/parser/whitespace-integer.html
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html>
<title>Whitespace in attribute values tests</title>
<script src=../../resources/testharness.js></script>
<script src=../../resources/testharnessreport.js></script>
@@ -18,7 +18,7 @@ var svg = document.querySelector("svg");
// test length values
var EPSILON = Math.pow(2, -24); // float epsilon
-var whitespace = [ "", " ", " ", "\r\n\t ", "\f" ];
+var whitespace = [ "", " ", " " ];
var garbage = [ "a", "e", "foo", ")90" ];
var validunits = [ "", "em", "ex", "px", "in", "cm", "mm", "pt", "pc", "%" ];
@@ -28,8 +28,7 @@ testType("<integer>",
0, // expected default value (FIXME: should be 1)
whitespace,
[ "-47", "0", "+32", "1241245" ],
- [ Number.NaN, Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY, "fnord", "E", "e", "e+", "E-", "-", "+", "-.", ".-", ".", "+.", ".E0", "e1", "+17E-1", "17e+2", "0.35", "1e-10", ".1" ],
- [""], // valid units
+ validunits,
garbage,
function(elm, value) { assert_equals(elm.numOctaves.baseVal, parseInt(value)); },
function(elm, expected) { assert_equals(elm.numOctaves.baseVal, expected); } );
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/svg/parser/whitespace-integer-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698