setAndAssertTranslation = (x, y) => {
  if (userAgent.GECKO ||
      userAgent.IE && !userAgent.isDocumentModeOrHigher(10)) {
    // Mozilla and <IE10 do not support CSSMatrix.
    return;
  }
  const success = transform.setTranslation(element, x, y);
  assertTrue(success);
  const translation = transform.getTranslation(element);
  assertEquals(x, translation.x);
  assertEquals(y, translation.y);
}
Sets a transform translation and asserts the translation was applied.
@param {number} x The horizontal translation
@param {number} y The vertical translation