Election emerges as referendum on race relations in America