Fixed #1933 Add a WebGL toggle flag for tests

Add a WebGL toggle flag for tests