China warned that reunification with Taiwan is an inevitable historical trend following local elections.