test_empty_policy.js (622B)
1 /* Any copyright is dedicated to the Public Domain. 2 * http://creativecommons.org/publicdomain/zero/1.0/ */ 3 4 "use strict"; 5 6 add_task(async function test_empty_policy() { 7 await setupPolicyEngineWithJson({ 8 policies: { 9 Certificates: {}, 10 }, 11 }); 12 13 equal( 14 Services.policies.status, 15 Ci.nsIEnterprisePolicies.INACTIVE, 16 "Engine is not active" 17 ); 18 }); 19 20 add_task(async function test_empty_array() { 21 await setupPolicyEngineWithJson({ 22 policies: { 23 RequestedLocales: [], 24 }, 25 }); 26 27 equal( 28 Services.policies.status, 29 Ci.nsIEnterprisePolicies.ACTIVE, 30 "Engine is active" 31 ); 32 });