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

Unified Diff: third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGPoint.js

Issue 2741153003: Convert LayoutTests/svg/dom/*.html js-tests.js to testharness.js based tests. (Closed)
Patch Set: Align with review comments 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 | « third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGNumber.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGPoint.js
diff --git a/third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGPoint.js b/third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGPoint.js
deleted file mode 100644
index a9e9c7e58611bc78d273e4a8089b4039df8ab1e4..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGPoint.js
+++ /dev/null
@@ -1,51 +0,0 @@
-description("This test checks the SVGPoint API");
-
-var svgElement = document.createElementNS("http://www.w3.org/2000/svg", "svg");
-var point = svgElement.createSVGPoint();
-
-debug("");
-debug("Check initial point values");
-shouldBe("point.x", "0");
-shouldBe("point.y", "0");
-
-debug("");
-debug("Check assigning points");
-shouldBe("point.x = 100", "100");
-shouldBe("point.y = 200", "200");
-
-debug("");
-debug("Check assigning invalid points");
-shouldBe("point.x = point", "point");
-shouldBeNull("point.y = null");
-
-debug("");
-debug("Check that the point contains the correct values");
-shouldBe("point.x", "NaN");
-shouldBe("point.y", "0");
-
-debug("");
-debug("Reset to -50, 100");
-point.x = -50;
-point.y = 100;
-
-debug("");
-debug("Check 'matrixTransform' method - multiply with -1,0,0,2,10,10 matrix, should flip x coordinate, multiply y by two and translate each coordinate by 10");
-var ctm = svgElement.createSVGMatrix();
-ctm.a = -1;
-ctm.d = 2;
-ctm.e = 10;
-ctm.f = 10;
-shouldBeEqualToString("(newPoint = point.matrixTransform(ctm)).toString()", "[object SVGPoint]");
-shouldBe("newPoint.x", "60");
-shouldBe("newPoint.y", "210");
-
-debug("");
-debug("Check invalid arguments for 'matrixTransform'");
-shouldThrow("point.matrixTransform()");
-shouldThrow("point.matrixTransform(-1)");
-shouldThrow("point.matrixTransform(5)");
-shouldThrow("point.matrixTransform('aString')");
-shouldThrow("point.matrixTransform(point)");
-shouldThrow("point.matrixTransform(svgElement)");
-
-successfullyParsed = true;
« no previous file with comments | « third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGNumber.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698