1 # Copyright 2016 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_CookiesSessionOnlyForUrls.urlnotin_block' 7 # TODO(krishnargv): enable this test once crbug.com/712713 is fixed. 8 # ATTRIBUTES = 'suite:bvt-perbuild, suite:policy' 9 TIME = 'SHORT' 10 TEST_CATEGORY = 'Functional' 11 TEST_CLASS = 'enterprise' 12 TEST_TYPE = 'client' 13 14 DOC = ''' 15 Verify effects of CookiesSessionOnlyForUrls policy. 16 17 This test case verifies the behavior and appearance of Chrome OS when the user 18 policy CookiesSessionOnlyForUrls does not contain a pattern that matches the 19 URL of a visited page, and DefaultCookiesSetting=2 (ie, block cookies by 20 default). 21 22 The test case shall pass if the browser blocks cookie storage for the test 23 page, because the page URL does not match any of the URL patterns specified in 24 CookiesSessionOnlyForUrls. It shall fail if the browser allows cookie storage 25 for the test page. 26 27 ''' 28 29 job.run_test('policy_CookiesSessionOnlyForUrls', case='UrlNotIn_Block') 30