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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-transformPoint.html

Issue 2930883002: [geometry] replace m12 with m21 when transform DOMPoint from DOMMatrix. (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-point-readonly.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-transformPoint.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-transformPoint.html b/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-transformPoint.html
index dac3bf565ffed26ae57a2f380b5b712b62d88a59..77d1193f16ac0cfbeedf50b5b8dce9f69f601785 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-transformPoint.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-transformPoint.html
@@ -17,45 +17,45 @@ test(function() {
}, "DOMMatrixReadOnly transformPoint() - 3d matrix");
test(function() {
- var matrix2d = new DOMMatrixReadOnly([2, 0, 0, 2, 10, 10]);
+ var matrix2d = new DOMMatrixReadOnly([1, 2, 3, 4, 5, 6]);
var point = matrix2d.transformPoint(new DOMPoint(5));
- assert_dom_point_equals(point, new DOMPoint(20, 10, 0, 1));
+ assert_dom_point_equals(point, new DOMPoint(10, 16, 0, 1));
}, "DOMMatrixReadOnly transformPoint(DOMPoint(x)) - 2d matrix");
test(function() {
- var matrix2d = new DOMMatrixReadOnly([2, 0, 0, 2, 10, 10]);
+ var matrix2d = new DOMMatrixReadOnly([1, 2, 3, 4, 5, 6]);
var point = matrix2d.transformPoint(new DOMPoint(5, 0, 0, 0));
- assert_dom_point_equals(point, new DOMPoint(10, 0, 0, 0));
+ assert_dom_point_equals(point, new DOMPoint(5, 10, 0, 0));
}, "DOMMatrixReadOnly transformPoint(DOMPoint(x, 0, 0, 0)) - 2d matrix");
test(function() {
- var matrix2d = new DOMMatrixReadOnly([2, 0, 0, 2, 10, 10]);
+ var matrix2d = new DOMMatrixReadOnly([1, 2, 3, 4, 5, 6]);
var point = matrix2d.transformPoint(new DOMPoint(5, 4));
- assert_dom_point_equals(point, new DOMPoint(20, 18, 0, 1));
+ assert_dom_point_equals(point, new DOMPoint(22, 32, 0, 1));
}, "DOMMatrixReadOnly transformPoint(DOMPoint(x, y)) - 2d matrix");
test(function() {
- var matrix2d = new DOMMatrixReadOnly([2, 0, 0, 2, 10, 10]);
+ var matrix2d = new DOMMatrixReadOnly([1, 2, 3, 4, 5, 6]);
var point = matrix2d.transformPoint(new DOMPoint(5, 4, 0, 0));
- assert_dom_point_equals(point, new DOMPoint(10, 8, 0, 0));
+ assert_dom_point_equals(point, new DOMPoint(17, 26, 0, 0));
}, "DOMMatrixReadOnly transformPoint(DOMPoint(x, y, 0, 0)) - 2d matrix");
test(function() {
- var matrix2d = new DOMMatrixReadOnly([2, 0, 0, 2, 10, 10]);
+ var matrix2d = new DOMMatrixReadOnly([1, 2, 3, 4, 5, 6]);
var point = matrix2d.transformPoint(new DOMPoint(5, 4, 3));
- assert_dom_point_equals(point, new DOMPoint(20, 18, 3, 1));
+ assert_dom_point_equals(point, new DOMPoint(22, 32, 3, 1));
}, "DOMMatrixReadOnly transformPoint(DOMPoint(x, y, z)) - 2d matrix");
test(function() {
- var matrix2d = new DOMMatrixReadOnly([2, 0, 0, 2, 10, 10]);
+ var matrix2d = new DOMMatrixReadOnly([1, 2, 3, 4, 5, 6]);
var point = matrix2d.transformPoint(new DOMPoint(5, 4, 3, 0));
- assert_dom_point_equals(point, new DOMPoint(10, 8, 3, 0));
+ assert_dom_point_equals(point, new DOMPoint(17, 26, 3, 0));
}, "DOMMatrixReadOnly transformPoint(DOMPoint(x, y, z, 0)) - 2d matrix");
test(function() {
- var matrix2d = new DOMMatrixReadOnly([2, 0, 0, 2, 10, 10]);
- var point = matrix2d.transformPoint(new DOMPoint(5, 4, 14, 5));
- assert_dom_point_equals(point, new DOMPoint(60, 58, 14, 5));
+ var matrix2d = new DOMMatrixReadOnly([1, 2, 3, 4, 5, 6]);
+ var point = matrix2d.transformPoint(new DOMPoint(5, 4, 3, 2));
+ assert_dom_point_equals(point, new DOMPoint(27, 38, 3, 2));
}, "DOMMatrixReadOnly transformPoint(DOMPoint(x, y, z, w)) - 2d matrix");
test(function() {
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-point-readonly.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698