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

Unified Diff: third_party/WebKit/LayoutTests/fast/svg/whitespace-length.html

Issue 2118903003: Relocate tests from fast/svg/ to svg/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move-fast-svg-tests
Patch Set: Rename some files Created 4 years, 6 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: third_party/WebKit/LayoutTests/fast/svg/whitespace-length.html
diff --git a/third_party/WebKit/LayoutTests/fast/svg/whitespace-length.html b/third_party/WebKit/LayoutTests/fast/svg/whitespace-length.html
deleted file mode 100644
index 9a2b52abc21f84732f3a230cb038c188181f3be8..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/svg/whitespace-length.html
+++ /dev/null
@@ -1,38 +0,0 @@
-<!doctype html>
-<title>Whitespace in attribute values tests</title>
-<script src=../../resources/testharness.js></script>
-<script src=../../resources/testharnessreport.js></script>
-<script src=resources/whitespace-helper.js></script>
-<svg id="testcontainer">
- <defs>
- <marker/>
- <stop/>
- <filter>
- <feTurbulence></feTurbulence>
- </filter>
- </defs>
-</svg>
-<div id=log></div>
-<script>
-var svg = document.querySelector("svg");
-
-// test length values
-var EPSILON = Math.pow(2, -24); // float epsilon
-var whitespace = [ "", " ", " ", "\r\n\t ", "\f" ];
-var garbage = [ "a", "e", "foo", ")90" ];
-var validunits = [ "", "em", "ex", "px", "in", "cm", "mm", "pt", "pc", "%" ];
-
-testType("<length>",
- svg,
- "x",
- 0, // expected default value
- whitespace,
- [ "-47", ".1", "0.35", "1e-10", "+32", "+17E-1", "17e+2" ], // valid
- [], // invalid (split out the next line to whitespace-length-invalid.html because trybots were too slow )
- // [ Number.NaN, Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY, "fnord", "E", "e", "e+", "E-", "-", "+", "-.", ".-", ".", "+.", ".E0", "e1" ],
- validunits,
- garbage,
- function(elm, value) { assert_approx_equals(elm.x.baseVal.valueInSpecifiedUnits, parseFloat(value), EPSILON); },
- function(elm, expected) { assert_approx_equals(elm.x.baseVal.value, expected, EPSILON); } );
-
-</script>

Powered by Google App Engine
This is Rietveld 408576698