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