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 f6d2d28c73b09e7a120532f91aa22fb62626f8ce..238d194221df8da128026200a042f3b2c8d06eac 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 |
@@ -60,3 +60,9 @@ function assert_matrix_equals(actual, expected, description) { |
assert_equals(actual.m41, actual.e, description); |
assert_equals(actual.m42, actual.f, description); |
} |
+ |
+function assert_array_almost_equals(actual, expected) { |
+ for (var i = 0; i < actual.length; i++) { |
+ assert_equals(actual[i].toFixed(10), expected[i].toFixed(10)); |
+ } |
+} |