Tests: Use error constants instead of magic numbers for detecting WebSQL errors