Home | History | Annotate | Download | only in policy_PopupsAllowedForUrls
      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_PopupsAllowedForUrls'
      7 TIME = 'SHORT'
      8 TEST_CATEGORY = 'General'
      9 TEST_CLASS = 'enterprise'
     10 TEST_TYPE = 'client'
     11 
     12 DOC = '''
     13 Verify effects of PopupsAllowedForUrls policy on client behavior.
     14 
     15 This test verifies the effect of the PopupsAllowedForUrls user policy on
     16 Chrome OS client behavior when the DefaultPopupsSetting policy is set to 2.
     17 It exercises a range of policy values using four unique test cases, named:
     18 NotSet_Blocked, 1Url_Allowed, 2Urls_Blocked, and 3Urls_Allowed. See the test
     19 file for a full description of what each test case does.
     20 
     21 In general, a test shall pass if the browser only allows popups on a test page
     22 that is in a domain listed in the PopupsAllowedForUrls policy. A test shall
     23 fail if the browser blocks popups on a page where they should be allowed, or
     24 allows popups on a page where they should be blocked.
     25 
     26 '''
     27 
     28 args_dict = utils.args_to_dict(args)
     29 
     30 job.run_test('policy_PopupsAllowedForUrls', **args_dict)
     31