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