[GeometryInterface] parameter of translate*() was changed.

first and second parameter should be default parameter.
if it is missing, that value should be zero.

spec list:
https://drafts.fxtf.org/geometry/#ref-for-dom-dommatrixreadonly-translate-1
https://drafts.fxtf.org/geometry/#ref-for-dom-dommatrix-translateself-1

BUG=388780, 660823

Review-Url: https://codereview.chromium.org/2461303003
Cr-Commit-Position: refs/heads/master@{#430569}
diff --git a/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-translate.html b/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-translate.html
index e65a0eea..984ad63 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-translate.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-translate.html
@@ -3,6 +3,23 @@
 <script src="../../resources/testharnessreport.js"></script>
 <script src="./resources/geometry-interfaces-test-helpers.js"></script>
 <script>
+
+test(function() {
+  var matrix = new DOMMatrix();
+  assert_identity_2d_matrix(matrix);
+  var result = matrix.translate();
+  assert_identity_2d_matrix(result);
+  assert_identity_2d_matrix(matrix);
+}, "DOMMatrix.translate()");
+
+test(function() {
+  var matrix = new DOMMatrix();
+  assert_identity_2d_matrix(matrix);
+  var result = matrix.translate(6);
+  assert_2d_matrix_equals(result, [1, 0, 0, 1, 6, 0]);
+  assert_identity_2d_matrix(matrix);
+}, "DOMMatrix.translate(tx)");
+
 test(function() {
   var matrix = new DOMMatrix();
   assert_identity_2d_matrix(matrix);
@@ -23,6 +40,22 @@
 test(function() {
   var matrix = new DOMMatrix();
   assert_identity_2d_matrix(matrix);
+  var result = matrix.translateSelf();
+  assert_identity_2d_matrix(result);
+  assert_identity_2d_matrix(matrix);
+}, "DOMMatrix.translateSelf()");
+
+test(function() {
+  var matrix = new DOMMatrix();
+  assert_identity_2d_matrix(matrix);
+  var result = matrix.translateSelf(5);
+  assert_2d_matrix_equals(result, [1, 0, 0, 1, 5, 0]);
+  assert_2d_matrix_equals(matrix, [1, 0, 0, 1, 5, 0]);
+}, "DOMMatrix.translateSelf(tx)");
+
+test(function() {
+  var matrix = new DOMMatrix();
+  assert_identity_2d_matrix(matrix);
   var result = matrix.translateSelf(4, 2);
   assert_2d_matrix_equals(result, [1, 0, 0, 1, 4, 2]);
   assert_2d_matrix_equals(matrix, [1, 0, 0, 1, 4, 2]);