Test that promise is rejected when submit is canceled.