China and the months of anti-gov’t unrest in Chinese-ruled Hong Kong took centre stage in the election campaign.