function xmlTest_checkVariableFieldDomValues(fieldDom, name, type, id, text) {
  assertEquals(name, fieldDom.getAttribute('name'));
  assertEquals(type, fieldDom.getAttribute('variabletype'));
  assertEquals(id, fieldDom.getAttribute('id'));
  assertEquals(text, fieldDom.textContent);
}
Check the values of the variable field DOM.
@param {!Element} fieldDom The xml dom of the variable field.
@param {!string} name The expected name of the variable.
@param {!string} type The expected type of the variable.
@param {!string} id The expected id of the variable.
@param {!string} text The expected text of the variable.