test for viewport