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 5AUTHOR = 'scunningham' 6NAME = 'policy_JavaScriptAllowedForUrls.singleurl_allow' 7ATTRIBUTES = 'suite:ent-nightly, suite:policy' 8TIME = 'SHORT' 9TEST_CATEGORY = 'General' 10TEST_CLASS = 'enterprise' 11TEST_TYPE = 'client' 12 13DOC = ''' 14Verify effects of JavaScriptAllowedForUrls policy. 15 16This test case verifies the behavior of Chrome OS when JavaScriptAllowedForUrls 17user policy is set to a single URL pattern, and DefaultJavaScriptSetting policy 18is set to 2 (do not allow by default). 19 20A test case shall pass if the browser allows JavaScript to execute only 21on a test page with a URL that matches one or more of the URL patterns listed 22in JavaScriptAllowedForUrls. A test shall fail if the browser blocks execution 23on a page where it should be allowed, or allows execution on a page where it 24should be blocked. 25 26''' 27 28job.run_test('policy_JavaScriptAllowedForUrls', case='SingleUrl_Allow') 29