summaryrefslogtreecommitdiffstats
path: root/chrome_frame/test
diff options
context:
space:
mode:
authorctguil@chromium.org <ctguil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-18 07:43:58 +0000
committerctguil@chromium.org <ctguil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-18 07:43:58 +0000
commit67700a92e622aebd70e72b8dbe4cee4efdf9878a (patch)
tree08a71482682732d688189eda968877b1919bab68 /chrome_frame/test
parent154d62610c587dafb521f65e37e6e1d5ef90ba7e (diff)
downloadchromium_src-67700a92e622aebd70e72b8dbe4cee4efdf9878a.zip
chromium_src-67700a92e622aebd70e72b8dbe4cee4efdf9878a.tar.gz
chromium_src-67700a92e622aebd70e72b8dbe4cee4efdf9878a.tar.bz2
Remove code that enables renderer accessibility based on the SPI_GETSCREENREADER parameter.
Update chrome frame so that its test automation can still use renderer accessibility. BUG=55902 TEST=none Review URL: http://codereview.chromium.org/3383010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59899 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/test')
-rw-r--r--chrome_frame/test/run_all_unittests.cc14
1 files changed, 2 insertions, 12 deletions
diff --git a/chrome_frame/test/run_all_unittests.cc b/chrome_frame/test/run_all_unittests.cc
index 4a7ee43..2c90a70 100644
--- a/chrome_frame/test/run_all_unittests.cc
+++ b/chrome_frame/test/run_all_unittests.cc
@@ -38,18 +38,7 @@ int main(int argc, char **argv) {
TestSuite test_suite(argc, argv);
SetConfigBool(kChromeFrameHeadlessMode, true);
-
- // Pretend that a screenreader is in use to cause Chrome to generate the
- // accessibility tree during page load. Otherwise, Chrome will send back
- // an unpopulated tree for the first request while it fetches the tree
- // from the renderer.
- BOOL is_screenreader_on = FALSE;
- SystemParametersInfo(SPI_SETSCREENREADER, TRUE, NULL, 0);
- SystemParametersInfo(SPI_GETSCREENREADER, 0, &is_screenreader_on, 0);
- if (!is_screenreader_on) {
- LOG(ERROR) << "Could not set screenreader property. Tests depending on "
- << "MSAA in CF will likely fail...";
- }
+ SetConfigBool(kChromeFrameAccessibleMode, true);
base::ProcessHandle crash_service = chrome_frame_test::StartCrashService();
int ret = -1;
@@ -72,6 +61,7 @@ int main(int argc, char **argv) {
}
DeleteConfigValue(kChromeFrameHeadlessMode);
+ DeleteConfigValue(kChromeFrameAccessibleMode);
if (crash_service)
base::KillProcess(crash_service, 0, false);