 [
    'any',
    'natural',
    'portrait',
    'landscape',
    'portrait-secondary',
    'landscape-primary',
    'landscape-secondary',
    'portrait-primary',
  ];
  for (const orientation of orientations) {
    try {
      await screen.orientation.lock(orientation);
    } catch(err) {
      if (err.name === "NotSupportedError") {
        continue;
      }
      assert_unreached("Unknown error: " + err);
    }
    const { type } = screen.orientation;
    switch (orientation) {
    case 'any':
      bre