function testSkip_ThrowsInvalidParameter() {
  var query = new lf.query.SelectBuilder(hr.db.getGlobal(), []);
  var employeeTable = db.getSchema().getEmployee();

  var buildQuery = function() {
    query.from(employeeTable).skip(-100);
  };

  // 531: Number of rows must not be negative for limit/skip.
  lf.testing.util.assertThrowsError(531, buildQuery);
}
Tests that Select#skip() fails if a negative value is passed.