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

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

Issue 2588583002: Rewrite the layout test for DOMPoint interface. (Closed)
Patch Set: Rewrite the layout test for DOMPoint interface. Created 4 years 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/fast/dom/geometry-interfaces-dom-point-readonly.html ('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/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 b24e527312bd47142fd3ec91d8df3d7ec9d0c842..8ca48fcb02423ce5e9a4268e20c771ba1a7ca83c 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
@@ -70,3 +70,12 @@ function assert_point_equals(actual, expected) {
assert_equals(actual.z, expected.z, "point equality: z differs");
assert_equals(actual.w, expected.w, "point equality: w differs");
}
+
+function assert_dom_point_equals(actual, expected) {
+ assert_true(Array.isArray(expected));
+ assert_equals(expected.length, 4);
+ assert_equals(actual.x, expected[0], "point equality: x differs");
+ assert_equals(actual.y, expected[1], "point equality: y differs");
+ assert_equals(actual.z, expected[2], "point equality: z differs");
+ assert_equals(actual.w, expected[3], "point equality: w differs");
+}
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-point-readonly.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698