1fb726d48Sopenharmony_ci/* 2fb726d48Sopenharmony_ci * Copyright (C) 2022 Huawei Device Co., Ltd. 3fb726d48Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 4fb726d48Sopenharmony_ci * you may not use this file except in compliance with the License. 5fb726d48Sopenharmony_ci * You may obtain a copy of the License at 6fb726d48Sopenharmony_ci * 7fb726d48Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 8fb726d48Sopenharmony_ci * 9fb726d48Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 10fb726d48Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 11fb726d48Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12fb726d48Sopenharmony_ci * See the License for the specific language governing permissions and 13fb726d48Sopenharmony_ci * limitations under the License. 14fb726d48Sopenharmony_ci */ 15fb726d48Sopenharmony_ci 16fb726d48Sopenharmony_ci 17fb726d48Sopenharmony_ciimport { LitButton } from '../../../src/base-ui/button/LitButton'; 18fb726d48Sopenharmony_ci 19fb726d48Sopenharmony_cidescribe('button Test', () => { 20fb726d48Sopenharmony_ci it('buttonTest01', function () { 21fb726d48Sopenharmony_ci let litButton = new LitButton(); 22fb726d48Sopenharmony_ci expect(litButton).not.toBeUndefined(); 23fb726d48Sopenharmony_ci }); 24fb726d48Sopenharmony_ci it('buttonTest02', function () { 25fb726d48Sopenharmony_ci let litButton = new LitButton(); 26fb726d48Sopenharmony_ci litButton.text = ' '; 27fb726d48Sopenharmony_ci expect(litButton.text).toBe(' '); 28fb726d48Sopenharmony_ci }); 29fb726d48Sopenharmony_ci it('buttonTest03', function () { 30fb726d48Sopenharmony_ci let litButton = new LitButton(); 31fb726d48Sopenharmony_ci litButton.text = 'test'; 32fb726d48Sopenharmony_ci expect(litButton.text).toBe('test'); 33fb726d48Sopenharmony_ci }); 34fb726d48Sopenharmony_ci it('buttonTest04', function () { 35fb726d48Sopenharmony_ci let litButton = new LitButton(); 36fb726d48Sopenharmony_ci litButton.back = 'test'; 37fb726d48Sopenharmony_ci expect(litButton.back).toBe('test'); 38fb726d48Sopenharmony_ci }); 39fb726d48Sopenharmony_ci it('buttonTest05', function () { 40fb726d48Sopenharmony_ci let litButton = new LitButton(); 41fb726d48Sopenharmony_ci litButton.icon = 'test'; 42fb726d48Sopenharmony_ci expect(litButton.icon).toBe('test'); 43fb726d48Sopenharmony_ci }); 44fb726d48Sopenharmony_ci it('buttonTest06', function () { 45fb726d48Sopenharmony_ci let litButton = new LitButton(); 46fb726d48Sopenharmony_ci litButton.height = 'test'; 47fb726d48Sopenharmony_ci expect(litButton.height).toBe('test'); 48fb726d48Sopenharmony_ci }); 49fb726d48Sopenharmony_ci it('buttonTest07', function () { 50fb726d48Sopenharmony_ci let litButton = new LitButton(); 51fb726d48Sopenharmony_ci litButton.width = 'test'; 52fb726d48Sopenharmony_ci expect(litButton.width).toBe('test'); 53fb726d48Sopenharmony_ci }); 54fb726d48Sopenharmony_ci it('buttonTest08', function () { 55fb726d48Sopenharmony_ci let litButton = new LitButton(); 56fb726d48Sopenharmony_ci litButton.color = 'test'; 57fb726d48Sopenharmony_ci expect(litButton.color).toBeUndefined(); 58fb726d48Sopenharmony_ci }); 59fb726d48Sopenharmony_ci it('buttonTest09', function () { 60fb726d48Sopenharmony_ci let litButton = new LitButton(); 61fb726d48Sopenharmony_ci litButton.font_size = 'test'; 62fb726d48Sopenharmony_ci expect(litButton.font_size).toBeUndefined(); 63fb726d48Sopenharmony_ci }); 64fb726d48Sopenharmony_ci it('buttonTest10', function () { 65fb726d48Sopenharmony_ci let litButton = new LitButton(); 66fb726d48Sopenharmony_ci litButton.border = 'test'; 67fb726d48Sopenharmony_ci expect(litButton.border).toBeUndefined(); 68fb726d48Sopenharmony_ci }); 69fb726d48Sopenharmony_ci it('buttonTest11', function () { 70fb726d48Sopenharmony_ci let litButton = new LitButton(); 71fb726d48Sopenharmony_ci litButton.padding = 'test'; 72fb726d48Sopenharmony_ci expect(litButton.padding).toBeUndefined(); 73fb726d48Sopenharmony_ci }); 74fb726d48Sopenharmony_ci it('buttonTest12', function () { 75fb726d48Sopenharmony_ci let litButton = new LitButton(); 76fb726d48Sopenharmony_ci litButton.justify_content = 'test'; 77fb726d48Sopenharmony_ci expect(litButton.justify_content).toBeUndefined(); 78fb726d48Sopenharmony_ci }); 79fb726d48Sopenharmony_ci it('buttonTest13', function () { 80fb726d48Sopenharmony_ci let litButton = new LitButton(); 81fb726d48Sopenharmony_ci litButton.border_radius = 'test'; 82fb726d48Sopenharmony_ci expect(litButton.border_radius).toBeUndefined(); 83fb726d48Sopenharmony_ci }); 84fb726d48Sopenharmony_ci it('buttonTest14', function () { 85fb726d48Sopenharmony_ci let litButton = new LitButton(); 86fb726d48Sopenharmony_ci litButton.margin_icon = 'test'; 87fb726d48Sopenharmony_ci expect(litButton.margin_icon).toBeUndefined(); 88fb726d48Sopenharmony_ci }); 89fb726d48Sopenharmony_ci}); 90