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 5AUTHOR = "scunningham" 6NAME = "policy_ImagesAllowedForUrls" 7ATTRIBUTES = "suite:regression" 8SUITE = "regression" 9TIME = "SHORT" 10TEST_CATEGORY = "General" 11TEST_CLASS = "enterprise" 12TEST_TYPE = "client" 13 14DOC = """ 15Verify effects of ImagesAllowedForUrls policy on client look and feel. 16 17This test verifies the effect of the ImagesAllowedForUrls user policy on 18Chrome OS client behavior and appearance when the DefaultImagesSetting policy 19is set to 2. It exercises a range of policy values using four unique test 20cases, named: NotSet, 1Url, 2Urls, and 3Urls. See the test file for a full 21description of what each test case does. 22 23In general, a test shall pass if the browser only allows images to be shown 24on a test page that is in a domain listed in the ImagesBlockedForUrls policy. 25A test shall fail if the browser blocks images on a page where they should be 26allowed to be shown, or allows images to be shown on a page where they should 27be blocked. 28 29Usage example: 30$ test_that <IPAddress> ImageAllowedForUrls --args="mode=single case=1Url 31env=dm-test dms_name=xot-dmst username=test@crosprqa1.com password=test1234" 32 33Runs a single test case (e.g., 1Url) against a device with the specified IP 34address, using the DM Test environment with the given DM Server name, and 35signing in to the device with the given username and password. 36 37""" 38 39job.run_test("policy_ImagesAllowedForUrls", args=args) 40 41