Fixed #1615 modify TestCase for WebGL

modify TestCase for WebGL