Home | History | Annotate | Download | only in power_FlashVideoSuspend
      1 # Copyright 2015 The Chromium OS Authors. All rights reserved.
      2 # Use of this source code is governed by a BSD-style license that can be
      3 # found in the LICENSE file.
      4 
      5 AUTHOR = "Chrome OS Team"
      6 NAME = "power_FlashVideoSuspend"
      7 ATTRIBUTES = "suite:bvt-perbuild"
      8 TIME = "SHORT"
      9 TEST_CATEGORY = "Functional"
     10 TEST_CLASS = "power"
     11 TEST_TYPE = "client"
     12 
     13 # This test has no actual dependency on servo.  However, a common
     14 # failure mode when there's a bug is that the DUT goes offline, and
     15 # must be power cycled.  Servo can do that automatically, so we
     16 # restrict testing to devices that have a servo, to avoid needing
     17 # manual repair.
     18 DEPENDENCIES = "servo"
     19 
     20 DOC = """
     21 Suspends the system with a Youtube video playing in HTML5 mode.
     22 
     23 Checks that video is playing when DUT is resumed.
     24 """
     25 
     26 video_url = "http://www.youtube.com/embed/Lv-sY_z8MNs?enablejsapi=1"
     27 job.add_sysinfo_logfile('/sys/kernel/debug/suspend_stats', on_every_test=True)
     28 job.run_test('power_FlashVideoSuspend', video_url = video_url)
     29