Home | History | Annotate | Download | only in policy_JavaScriptBlockedForUrls
      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_JavaScriptBlockedForUrls.multipleurls_block'
      7 ATTRIBUTES = 'suite:bvt-perbuild'
      8 TIME = 'SHORT'
      9 TEST_CATEGORY = 'General'
     10 TEST_CLASS = 'enterprise'
     11 TEST_TYPE = 'client'
     12 
     13 DOC = '''
     14 Verify effects of JavaScriptBlockedForUrls policy.
     15 
     16 This test case verifies the behavior of Chrome OS when JavaScriptBlockedForUrls
     17 user policy is set to multiple URL patterns, and the DefaultJavaScriptSetting
     18 policy is set to 1 (allow by default).
     19 
     20 The test case shall pass iff the browser blocks javascript on a test page
     21 with an URL that matches any of the URL patterns specified in
     22 JavaScriptBlockedForUrls, and allows javascript on any page with an URL that
     23 does not match. It shall fail if the browser does not enforce this behavior.
     24 
     25 '''
     26 
     27 job.run_test('policy_JavaScriptBlockedForUrls', case='MultipleUrls_Block')
     28