| # Copyright 2017 The Chromium OS Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| AUTHOR = "rjahagir" |
| NAME = "platform_TabletMode" |
| PURPOSE = """Verify that laptop can transition successfully into tablet mode.""" |
| CRITERIA = """ |
| Test fails if any of the following happen: |
| - Unable to get a valid screenshot. |
| - Landscape, portrait, laptop screenshots are not sufficiently different. |
| - Laptop at the start and laptop at the end are not the same. |
| """ |
| TIME = "SHORT" |
| TEST_CATEGORY = "Functional" |
| TEST_CLASS = "platform" |
| TEST_TYPE = "client" |
| ATTRIBUTES = "suite:tablet_mode" |
| |
| DOC = """ |
| Takes screenshots when in laptop mode and tablet mode (landscape and portrait). |
| The test will fail if the laptop screenshots are not similar enough or if the |
| tablet screenshots are not different enough from the laptop screenshots. |
| """ |
| job.run_test("platform_TabletMode") |