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 16import { LitTabpane } from '../../../src/base-ui/tabs/lit-tabpane'; 17 18describe('LitTabPane Test', () => { 19 let litTabPane = new LitTabpane(); 20 21 litTabPane.tab = 'tab'; 22 litTabPane.disabled = null || false; 23 litTabPane.disabled = !null || !false; 24 litTabPane.hidden = 'hidden'; 25 litTabPane.closeable = false; 26 litTabPane.key = 'key'; 27 28 it('LitTabPaneTest1', () => { 29 expect(litTabPane.attributeChangedCallback('disabled', 'disabled', '')).toBeUndefined(); 30 }); 31 32 it('LitTabPaneTest2', () => { 33 expect(litTabPane.tab).toBe('tab'); 34 }); 35 36 it('LitTabPaneTest3', () => { 37 expect(litTabPane.icon).toBeNull(); 38 }); 39 40 it('LitTabPaneTest4', () => { 41 expect(litTabPane.disabled).toBeTruthy(); 42 }); 43 44 it('LitTabPaneTest5', () => { 45 expect(litTabPane.hidden).toBeTruthy(); 46 }); 47 48 it('LitTabPaneTest6', () => { 49 litTabPane.closeable = 'closeable'; 50 expect(litTabPane.closeable).toBeTruthy(); 51 }); 52 53 it('LitTabPaneTest7', () => { 54 expect(litTabPane.key).toBe('key'); 55 }); 56 57 it('LitTabPaneTest9 ', function () { 58 expect(litTabPane.connectedCallback()).toBeUndefined(); 59 }); 60 61 it('LitTabPaneTest10 ', function () { 62 expect(litTabPane.disconnectedCallback()).toBeUndefined(); 63 }); 64 65 it('LitTabPaneTest11 ', function () { 66 expect(litTabPane.adoptedCallback()).toBeUndefined(); 67 }); 68}); 69