This `param` was assigned to be the device orientation `screen.orientation` which should be in the current orientation list `allowed_orientations`. Why cannot directly assign a valid orientation to screen.lockOrientation()?

Thus you will have 6 valid parameters, "portrait", "landscape", "portrait-primary", "portrait-secondary", "landscape-primary", "landscape-secondary". Then comes out 6 test cases for the valid parameters, right?