Commit 45801fa2 authored by rohitbm@chromium.org's avatar rohitbm@chromium.org

We saw a Chrome crash on changing the device volume in Guest mode if...

We saw a Chrome crash on changing the device volume in Guest mode if Accessibility has been turned on. This automation test will catch this type of crash.

TEST=None
BUG=129218
Review URL: https://chromiumcodereview.appspot.com/10696169

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146263 0039d316-1c4b-4281-b951-d872f2087c98
parent a91291d0
......@@ -7,6 +7,7 @@ import logging
import os
import subprocess
import sys
import time
import pyauto_functional
import pyauto
......@@ -74,6 +75,13 @@ class AccessibilityTest(pyauto.PyUITest):
self.NavigateToURL(url)
self.assertEqual(1, self.FindInPage('title')['match_count'],
msg='Failed to load the page or find the page contents.')
# crbug.com/129218: adding a volume change functionality to automate this
# issue. Please note that we don't verify any functionality here.
default_volume = self.GetVolumeInfo()
for test_volume in (50.00, 77.00, 85.00, 20.00):
self.SetVolume(test_volume)
time.sleep(1)
self.SetVolume(default_volume.get('volume'))
def testAccessibilityBeforeLogin(self):
"""Test Accessibility before login."""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment