Home | History | Annotate | Download | only in policy_PopupsBlockedForUrls
      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_PopupsBlockedForUrls"
      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 PopupsBlockedForUrls policy on client behavior.
     16 
     17 This test verifies the effect of the PopupsBlockedForUrls user policy on
     18 Chrome OS client behavior when the DefaultPopupsSetting policy is set to 1.
     19 It exercises a range of policy values using four unique test cases, named:
     20 NotSet_Allowed, 1Url_Blocked, 2Urls_Allowed, and 3Urls_Blocked. See the test
     21 file for a full description of what each test case does.
     22 
     23 In general, a test shall pass if the browser only blocks popups on a test page
     24 that is in a domain listed in the PopupsBlockedForUrls policy. A test shall
     25 fail if the browser blocks popups on a page where they should be allowed, or
     26 allows popups on a page where they should be blocked.
     27 
     28 Usage example:
     29 $ test_that <IPAddress> PopupsBlockedForUrls
     30 
     31 Runs all the test cases against a device with the specified IP address, using
     32 the DM Test environment with the given DM Server name, and signing in to the
     33 device with the given username and password.
     34 
     35 """
     36 
     37 job.run_test("policy_PopupsBlockedForUrls", args=args)
     38