Home | History | Annotate | Download | only in policy_JavaScriptAllowedForUrls
      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_JavaScriptAllowedForUrls"
      7 ATTRIBUTES = "suite:regression"
      8 SUITE = "regression"
      9 TIME = "SHORT"
     10 TEST_CATEGORY = "General"
     11 TEST_CLASS = "enterprise"
     12 TEST_TYPE = "client"
     13 
     14 DOC = """
     15 Verify effects of JavaScriptAllowedForUrls policy on client behavior.
     16 
     17 This test verifies the effect of the JavaScriptAllowedForUrls user policy on
     18 Chrome OS client behavior when the DefaultJavaScriptSetting user policy is set
     19 to 2. It exercises a range of policy values using four unique test cases,
     20 named: NotSet_BlockJS, SingleUrl_AllowJS, MultipleUrls_BlockJS, and
     21 MultipleUrls_AllowJS. See the test file for a full description of what each
     22 test case does.
     23 
     24 In general, a test shall pass if the browser allows JavaScript to execute only
     25 on a test page with a URL that matches one or more of the URL patterns listed
     26 in JavaScriptBlockedForUrls. A test shall fail if the browser blocks execution
     27 on a page where it should be allowed, or allows execution on a page where it
     28 should be blocked.
     29 
     30 Usage example:
     31 $ test_that <IPAddress> JavaScriptAllowedForUrls --args="mode=single
     32 case=SingleUrl_AllowJS env=dm-test dms_name=xot-dmst
     33 username=test (a] crosprqa4.com password=test0000"
     34 
     35 Runs a single test case (e.g., SingleUrl_AllowJS) against a device with the
     36 specified IP address, using the DM Test environment with the given DM Server
     37 name, and signing in to the device with the given username and password.
     38 
     39 """
     40 
     41 job.run_test("policy_JavaScriptAllowedForUrls", args=args)
     42