• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
17import { LitButton } from '../../../src/base-ui/button/LitButton';
18
19describe('button Test', () => {
20  it('buttonTest01', function () {
21    let litButton = new LitButton();
22    expect(litButton).not.toBeUndefined();
23  });
24  it('buttonTest02', function () {
25    let litButton = new LitButton();
26    litButton.text = ' ';
27    expect(litButton.text).toBe(' ');
28  });
29  it('buttonTest03', function () {
30    let litButton = new LitButton();
31    litButton.text = 'test';
32    expect(litButton.text).toBe('test');
33  });
34  it('buttonTest04', function () {
35    let litButton = new LitButton();
36    litButton.back = 'test';
37    expect(litButton.back).toBe('test');
38  });
39  it('buttonTest05', function () {
40    let litButton = new LitButton();
41    litButton.icon = 'test';
42    expect(litButton.icon).toBe('test');
43  });
44  it('buttonTest06', function () {
45    let litButton = new LitButton();
46    litButton.height = 'test';
47    expect(litButton.height).toBe('test');
48  });
49  it('buttonTest07', function () {
50    let litButton = new LitButton();
51    litButton.width = 'test';
52    expect(litButton.width).toBe('test');
53  });
54  it('buttonTest08', function () {
55    let litButton = new LitButton();
56    litButton.color = 'test';
57    expect(litButton.color).toBeUndefined();
58  });
59  it('buttonTest09', function () {
60    let litButton = new LitButton();
61    litButton.font_size = 'test';
62    expect(litButton.font_size).toBeUndefined();
63  });
64  it('buttonTest10', function () {
65    let litButton = new LitButton();
66    litButton.border = 'test';
67    expect(litButton.border).toBeUndefined();
68  });
69  it('buttonTest11', function () {
70    let litButton = new LitButton();
71    litButton.padding = 'test';
72    expect(litButton.padding).toBeUndefined();
73  });
74  it('buttonTest12', function () {
75    let litButton = new LitButton();
76    litButton.justify_content = 'test';
77    expect(litButton.justify_content).toBeUndefined();
78  });
79  it('buttonTest13', function () {
80    let litButton = new LitButton();
81    litButton.border_radius = 'test';
82    expect(litButton.border_radius).toBeUndefined();
83  });
84  it('buttonTest14', function () {
85    let litButton = new LitButton();
86    litButton.margin_icon = 'test';
87    expect(litButton.margin_icon).toBeUndefined();
88  });
89});
90