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