Home | History | Annotate | Download | only in policy_JavaScriptAllowedForUrls
      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_JavaScriptAllowedForUrls.multipleurls_allow'
      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 JavaScriptAllowedForUrls policy.
     15 
     16 This test case verifies the behavior of Chrome OS when JavaScriptAllowedForUrls
     17 user policy is set to multiple URL patterns, and DefaultJavaScriptSetting policy
     18 is set to 2 (do not allow by default).
     19 
     20 A test case shall pass if the browser allows JavaScript to execute only
     21 on a test page with a URL that matches one or more of the URL patterns listed
     22 in JavaScriptAllowedForUrls. A test shall fail if the browser blocks execution
     23 on a page where it should be allowed, or allows execution on a page where it
     24 should be blocked.
     25 
     26 '''
     27 
     28 job.run_test('policy_JavaScriptAllowedForUrls', case='MultipleUrls_Allow')
     29