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 17import {LitTabpane} from "../../../dist/base-ui/tabs/lit-tabpane.js"; 18 19describe('LitTabPane Test', ()=>{ 20 let litTabPane = new LitTabpane(); 21 22 litTabPane.tab = 'tab' 23 litTabPane.disabled = 'disabled' 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 it('LitTabPaneTest5', ()=>{ 44 expect(litTabPane.hidden).toBeTruthy(); 45 }) 46 it('LitTabPaneTest6', ()=>{ 47 litTabPane.closeable = 'closeable' 48 expect(litTabPane.closeable).toBeTruthy(); 49 }) 50 it('LitTabPaneTest7', ()=>{ 51 expect(litTabPane.key).toBe('key'); 52 }) 53}) 54