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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/resources/geometry-interfaces-test-helpers.js

Issue 2423753002: [GeometryInterface] add transformPoint(point) function. (Closed)
Patch Set: update test msg. Created 4 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/fast/dom/resources/geometry-interfaces-test-helpers.js
diff --git a/third_party/WebKit/LayoutTests/fast/dom/resources/geometry-interfaces-test-helpers.js b/third_party/WebKit/LayoutTests/fast/dom/resources/geometry-interfaces-test-helpers.js
index ee27f2b8f05134cf2c02c7b46560e6d2371be44b..b24e527312bd47142fd3ec91d8df3d7ec9d0c842 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/resources/geometry-interfaces-test-helpers.js
+++ b/third_party/WebKit/LayoutTests/fast/dom/resources/geometry-interfaces-test-helpers.js
@@ -63,3 +63,10 @@ function assert_array_almost_equals(actual, expected) {
function assert_matrix_almost_equals(actual, expected) {
assert_array_almost_equals(actual.toFloat64Array(), expected.toFloat64Array());
}
+
+function assert_point_equals(actual, expected) {
+ assert_equals(actual.x, expected.x, "point equality: x differs");
+ assert_equals(actual.y, expected.y, "point equality: y differs");
+ assert_equals(actual.z, expected.z, "point equality: z differs");
+ assert_equals(actual.w, expected.w, "point equality: w differs");
+}

Powered by Google App Engine
This is Rietveld 408576698