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