1/* 2 * Copyright (C) 2022 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16// @ts-ignore 17 18import { LitPopContent } from '../../../src/base-ui/popover/LitPopContent'; 19 20describe('LitPopCont Test', () => { 21 it('LitPopCont01', () => { 22 let litPopContent = new LitPopContent(); 23 expect(litPopContent).not.toBeUndefined(); 24 expect(litPopContent).not.toBeNull(); 25 }); 26 27 it('LitPopCont02', () => { 28 let litPopContent = new LitPopContent(); 29 expect(litPopContent.open).toBeFalsy(); 30 }); 31 32 it('LitPopCont03', () => { 33 let litPopContent = new LitPopContent(); 34 litPopContent.open = false; 35 expect(litPopContent.open).toBeFalsy(); 36 }); 37 38 it('LitPopCont04', () => { 39 let litPopContent = new LitPopContent(); 40 litPopContent.open = true; 41 expect(litPopContent.open).toBeTruthy(); 42 }); 43 44 it('LitPopCont04', () => { 45 let litPopContent = new LitPopContent(); 46 litPopContent.name = '11'; 47 expect(litPopContent.name).toEqual('11'); 48 }); 49 50 51 it('LitPopCont06', () => { 52 let litPopContent = new LitPopContent(); 53 expect(litPopContent.attributeChangedCallback('open', '', null || 'false')).toBeUndefined(); 54 }); 55 56 it('LitPopCont07', () => { 57 let litPopContent = new LitPopContent(); 58 expect(litPopContent.attributeChangedCallback('name', '', '')).toBeUndefined(); 59 }); 60}); 61