mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
windows title bar unit test (#597)
This commit is contained in:
committed by
Kiran Niranjan
parent
13e82bac00
commit
9dfe055045
127
spec/__snapshots__/windowsTitleBar.spec.ts.snap
Normal file
127
spec/__snapshots__/windowsTitleBar.spec.ts.snap
Normal file
@@ -0,0 +1,127 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`windows title bar should render correctly 1`] = `
|
||||
<div
|
||||
className="title-bar"
|
||||
onDoubleClick={[Function]}
|
||||
style={
|
||||
Object {
|
||||
"display": "flex",
|
||||
}
|
||||
}
|
||||
>
|
||||
<div
|
||||
className="title-bar-button-container"
|
||||
>
|
||||
<button
|
||||
className="hamburger-menu-button"
|
||||
onClick={[Function]}
|
||||
onMouseDown={[Function]}
|
||||
title="Menu"
|
||||
>
|
||||
<svg
|
||||
viewBox="0 0 15 10"
|
||||
x="0px"
|
||||
y="0px"
|
||||
>
|
||||
<rect
|
||||
fill="rgba(255, 255, 255, 0.9)"
|
||||
height="1"
|
||||
width="15"
|
||||
/>
|
||||
<rect
|
||||
fill="rgba(255, 255, 255, 0.9)"
|
||||
height="1"
|
||||
width="15"
|
||||
y="4"
|
||||
/>
|
||||
<rect
|
||||
fill="rgba(255, 255, 255, 0.9)"
|
||||
height="1"
|
||||
width="152"
|
||||
y="8"
|
||||
/>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
<div
|
||||
className="title-container"
|
||||
>
|
||||
<img
|
||||
className="symphony-logo"
|
||||
/>
|
||||
<p
|
||||
className="title-bar-title"
|
||||
>
|
||||
Symphony
|
||||
</p>
|
||||
</div>
|
||||
<div
|
||||
className="title-bar-button-container"
|
||||
>
|
||||
<button
|
||||
className="title-bar-button"
|
||||
onClick={[Function]}
|
||||
onMouseDown={[Function]}
|
||||
title="Minimize"
|
||||
>
|
||||
<svg
|
||||
viewBox="0 0 14 1"
|
||||
x="0px"
|
||||
y="0px"
|
||||
>
|
||||
<rect
|
||||
fill="rgba(255, 255, 255, 0.9)"
|
||||
height="0.6"
|
||||
width="14"
|
||||
/>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
<div
|
||||
className="title-bar-button-container"
|
||||
>
|
||||
<button
|
||||
className="title-bar-button"
|
||||
onClick={[Function]}
|
||||
onMouseDown={[Function]}
|
||||
title="unMaximize"
|
||||
>
|
||||
<svg
|
||||
viewBox="0 0 14 10.2"
|
||||
x="0px"
|
||||
y="0px"
|
||||
>
|
||||
<path
|
||||
d="M0,0v10.1h10.2V0H0z M9.2,9.2H1.1V1h8.1V9.2z"
|
||||
fill="rgba(255, 255, 255, 0.9)"
|
||||
/>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
<div
|
||||
className="title-bar-button-container"
|
||||
>
|
||||
<button
|
||||
className="title-bar-button"
|
||||
onClick={[Function]}
|
||||
onMouseDown={[Function]}
|
||||
title="Close"
|
||||
>
|
||||
<svg
|
||||
viewBox="0 0 14 10.2"
|
||||
x="0px"
|
||||
y="0px"
|
||||
>
|
||||
<polygon
|
||||
fill="rgba(255, 255, 255, 0.9)"
|
||||
points="10.2,0.7 9.5,0 5.1,4.4 0.7,0 0,0.7 4.4,5.1 0,9.5 0.7,10.2 5.1,5.8 9.5,10.2 10.2,9.5 5.8,5.1 "
|
||||
/>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
<div
|
||||
className="branding-logo"
|
||||
/>
|
||||
</div>
|
||||
`;
|
||||
Reference in New Issue
Block a user