The test case is designed to guarantee that the texture2D or Cube is complete and generateMipmap won't be affected by the texture completeness. As you can see, the size is always power of 2 and each all have the same format, type and size.