Painting a roof white has nothing to do with whether it contains asbestos or not. The reason behind the white colour is, White colour efficiently reflects the sun's heat, helping to keep the space under the roof cooler than it would otherwise be in a different color.