blob: eb1e3ac6eef2ef611b585778fbea845f222d5251 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Message component renders the expected snapshot for ERROR level 1`] = `
<aside
className="message message--level-error qa-message some-classname-3"
>
<img
className="message__icon"
src="chrome://devtools/skin/images/aboutdebugging-error.svg"
/>
<div
className="message__body"
>
<div>
Message content
</div>
</div>
</aside>
`;
exports[`Message component renders the expected snapshot for INFO level 1`] = `
<aside
className="message message--level-info qa-message some-classname-1"
>
<img
className="message__icon"
src="chrome://devtools/skin/images/aboutdebugging-information.svg"
/>
<div
className="message__body"
>
<div>
Message content
</div>
</div>
</aside>
`;
exports[`Message component renders the expected snapshot for WARNING level 1`] = `
<aside
className="message message--level-warning qa-message some-classname-2"
>
<img
className="message__icon"
src="chrome://devtools/skin/images/alert.svg"
/>
<div
className="message__body"
>
<div>
Message content
</div>
</div>
</aside>
`;
exports[`Message component renders with closing button renders the expected snapshot for Message with closing button 1`] = `
<aside
className="message message--level-info qa-message some-classname-1"
>
<img
className="message__icon"
src="chrome://devtools/skin/images/aboutdebugging-information.svg"
/>
<div
className="message__body"
>
<div>
Message content
</div>
</div>
<button
className="ghost-button message__button message__button--info qa-message-button-close-button"
onClick={[Function]}
>
<Localized
attrs={
Object {
"alt": true,
}
}
id="about-debugging-message-close-icon"
>
<img
className="qa-message-button-close-icon"
src="chrome://devtools/skin/images/close.svg"
/>
</Localized>
</button>
</aside>
`;
|