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

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

Issue 2365153002: [GeometryInterface] Add rotateAxisAngle*(x,y,z,angle) function. (Closed)
Patch Set: Created 4 years, 3 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/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));
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698