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"); |
+} |