Skip to content

Commit 43ed1d5

Browse files
committed
fix snapshot
1 parent f8fad57 commit 43ed1d5

File tree

1 file changed

+159
-0
lines changed

1 file changed

+159
-0
lines changed

tests/snapshot_tests/__snapshots__/test_snapshots.ambr

Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7119,6 +7119,165 @@
71197119

71207120
'''
71217121
# ---
7122+
# name: test_nested_auto_heights
7123+
'''
7124+
<svg class="rich-terminal" viewBox="0 0 994 635.5999999999999" xmlns="http://www.w3.org/2000/svg">
7125+
<!-- Generated with Rich https://www.textualize.io -->
7126+
<style>
7127+
7128+
@font-face {
7129+
font-family: "Fira Code";
7130+
src: local("FiraCode-Regular"),
7131+
url("https://cdnjs.cloudflare.com/ajax/libs/firacode/6.2.0/woff2/FiraCode-Regular.woff2") format("woff2"),
7132+
url("https://cdnjs.cloudflare.com/ajax/libs/firacode/6.2.0/woff/FiraCode-Regular.woff") format("woff");
7133+
font-style: normal;
7134+
font-weight: 400;
7135+
}
7136+
@font-face {
7137+
font-family: "Fira Code";
7138+
src: local("FiraCode-Bold"),
7139+
url("https://cdnjs.cloudflare.com/ajax/libs/firacode/6.2.0/woff2/FiraCode-Bold.woff2") format("woff2"),
7140+
url("https://cdnjs.cloudflare.com/ajax/libs/firacode/6.2.0/woff/FiraCode-Bold.woff") format("woff");
7141+
font-style: bold;
7142+
font-weight: 700;
7143+
}
7144+
7145+
.terminal-2940916684-matrix {
7146+
font-family: Fira Code, monospace;
7147+
font-size: 20px;
7148+
line-height: 24.4px;
7149+
font-variant-east-asian: full-width;
7150+
}
7151+
7152+
.terminal-2940916684-title {
7153+
font-size: 18px;
7154+
font-weight: bold;
7155+
font-family: arial;
7156+
}
7157+
7158+
.terminal-2940916684-r1 { fill: #90ee90 }
7159+
.terminal-2940916684-r2 { fill: #c5c8c6 }
7160+
.terminal-2940916684-r3 { fill: #add8e6 }
7161+
.terminal-2940916684-r4 { fill: #808080 }
7162+
.terminal-2940916684-r5 { fill: #dddddd }
7163+
.terminal-2940916684-r6 { fill: #ffdddd }
7164+
</style>
7165+
7166+
<defs>
7167+
<clipPath id="terminal-2940916684-clip-terminal">
7168+
<rect x="0" y="0" width="975.0" height="584.5999999999999" />
7169+
</clipPath>
7170+
<clipPath id="terminal-2940916684-line-0">
7171+
<rect x="0" y="1.5" width="976" height="24.65"/>
7172+
</clipPath>
7173+
<clipPath id="terminal-2940916684-line-1">
7174+
<rect x="0" y="25.9" width="976" height="24.65"/>
7175+
</clipPath>
7176+
<clipPath id="terminal-2940916684-line-2">
7177+
<rect x="0" y="50.3" width="976" height="24.65"/>
7178+
</clipPath>
7179+
<clipPath id="terminal-2940916684-line-3">
7180+
<rect x="0" y="74.7" width="976" height="24.65"/>
7181+
</clipPath>
7182+
<clipPath id="terminal-2940916684-line-4">
7183+
<rect x="0" y="99.1" width="976" height="24.65"/>
7184+
</clipPath>
7185+
<clipPath id="terminal-2940916684-line-5">
7186+
<rect x="0" y="123.5" width="976" height="24.65"/>
7187+
</clipPath>
7188+
<clipPath id="terminal-2940916684-line-6">
7189+
<rect x="0" y="147.9" width="976" height="24.65"/>
7190+
</clipPath>
7191+
<clipPath id="terminal-2940916684-line-7">
7192+
<rect x="0" y="172.3" width="976" height="24.65"/>
7193+
</clipPath>
7194+
<clipPath id="terminal-2940916684-line-8">
7195+
<rect x="0" y="196.7" width="976" height="24.65"/>
7196+
</clipPath>
7197+
<clipPath id="terminal-2940916684-line-9">
7198+
<rect x="0" y="221.1" width="976" height="24.65"/>
7199+
</clipPath>
7200+
<clipPath id="terminal-2940916684-line-10">
7201+
<rect x="0" y="245.5" width="976" height="24.65"/>
7202+
</clipPath>
7203+
<clipPath id="terminal-2940916684-line-11">
7204+
<rect x="0" y="269.9" width="976" height="24.65"/>
7205+
</clipPath>
7206+
<clipPath id="terminal-2940916684-line-12">
7207+
<rect x="0" y="294.3" width="976" height="24.65"/>
7208+
</clipPath>
7209+
<clipPath id="terminal-2940916684-line-13">
7210+
<rect x="0" y="318.7" width="976" height="24.65"/>
7211+
</clipPath>
7212+
<clipPath id="terminal-2940916684-line-14">
7213+
<rect x="0" y="343.1" width="976" height="24.65"/>
7214+
</clipPath>
7215+
<clipPath id="terminal-2940916684-line-15">
7216+
<rect x="0" y="367.5" width="976" height="24.65"/>
7217+
</clipPath>
7218+
<clipPath id="terminal-2940916684-line-16">
7219+
<rect x="0" y="391.9" width="976" height="24.65"/>
7220+
</clipPath>
7221+
<clipPath id="terminal-2940916684-line-17">
7222+
<rect x="0" y="416.3" width="976" height="24.65"/>
7223+
</clipPath>
7224+
<clipPath id="terminal-2940916684-line-18">
7225+
<rect x="0" y="440.7" width="976" height="24.65"/>
7226+
</clipPath>
7227+
<clipPath id="terminal-2940916684-line-19">
7228+
<rect x="0" y="465.1" width="976" height="24.65"/>
7229+
</clipPath>
7230+
<clipPath id="terminal-2940916684-line-20">
7231+
<rect x="0" y="489.5" width="976" height="24.65"/>
7232+
</clipPath>
7233+
<clipPath id="terminal-2940916684-line-21">
7234+
<rect x="0" y="513.9" width="976" height="24.65"/>
7235+
</clipPath>
7236+
<clipPath id="terminal-2940916684-line-22">
7237+
<rect x="0" y="538.3" width="976" height="24.65"/>
7238+
</clipPath>
7239+
</defs>
7240+
7241+
<rect fill="#292929" stroke="rgba(255,255,255,0.35)" stroke-width="1" x="1" y="1" width="992" height="633.6" rx="8"/><text class="terminal-2940916684-title" fill="#c5c8c6" text-anchor="middle" x="496" y="27">NestedAutoApp</text>
7242+
<g transform="translate(26,22)">
7243+
<circle cx="0" cy="0" r="7" fill="#ff5f57"/>
7244+
<circle cx="22" cy="0" r="7" fill="#febc2e"/>
7245+
<circle cx="44" cy="0" r="7" fill="#28c840"/>
7246+
</g>
7247+
7248+
<g transform="translate(9, 41)" clip-path="url(#terminal-2940916684-clip-terminal)">
7249+
<rect fill="#008000" x="0" y="1.5" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#008000" x="0" y="25.9" width="12.2" height="24.65" shape-rendering="crispEdges"/><rect fill="#0000ff" x="12.2" y="25.9" width="207.4" height="24.65" shape-rendering="crispEdges"/><rect fill="#008000" x="219.6" y="25.9" width="744.2" height="24.65" shape-rendering="crispEdges"/><rect fill="#008000" x="963.8" y="25.9" width="12.2" height="24.65" shape-rendering="crispEdges"/><rect fill="#008000" x="0" y="50.3" width="12.2" height="24.65" shape-rendering="crispEdges"/><rect fill="#0000ff" x="12.2" y="50.3" width="12.2" height="24.65" shape-rendering="crispEdges"/><rect fill="#000000" x="24.4" y="50.3" width="183" height="24.65" shape-rendering="crispEdges"/><rect fill="#0000ff" x="207.4" y="50.3" width="12.2" height="24.65" shape-rendering="crispEdges"/><rect fill="#008000" x="219.6" y="50.3" width="744.2" height="24.65" shape-rendering="crispEdges"/><rect fill="#008000" x="963.8" y="50.3" width="12.2" height="24.65" shape-rendering="crispEdges"/><rect fill="#008000" x="0" y="74.7" width="12.2" height="24.65" shape-rendering="crispEdges"/><rect fill="#0000ff" x="12.2" y="74.7" width="12.2" height="24.65" shape-rendering="crispEdges"/><rect fill="#000000" x="24.4" y="74.7" width="12.2" height="24.65" shape-rendering="crispEdges"/><rect fill="#000000" x="36.6" y="74.7" width="158.6" height="24.65" shape-rendering="crispEdges"/><rect fill="#000000" x="195.2" y="74.7" width="12.2" height="24.65" shape-rendering="crispEdges"/><rect fill="#0000ff" x="207.4" y="74.7" width="12.2" height="24.65" shape-rendering="crispEdges"/><rect fill="#008000" x="219.6" y="74.7" width="744.2" height="24.65" shape-rendering="crispEdges"/><rect fill="#008000" x="963.8" y="74.7" width="12.2" height="24.65" shape-rendering="crispEdges"/><rect fill="#008000" x="0" y="99.1" width="12.2" height="24.65" shape-rendering="crispEdges"/><rect fill="#0000ff" x="12.2" y="99.1" width="12.2" height="24.65" shape-rendering="crispEdges"/><rect fill="#000000" x="24.4" y="99.1" width="183" height="24.65" shape-rendering="crispEdges"/><rect fill="#0000ff" x="207.4" y="99.1" width="12.2" height="24.65" shape-rendering="crispEdges"/><rect fill="#008000" x="219.6" y="99.1" width="744.2" height="24.65" shape-rendering="crispEdges"/><rect fill="#008000" x="963.8" y="99.1" width="12.2" height="24.65" shape-rendering="crispEdges"/><rect fill="#008000" x="0" y="123.5" width="12.2" height="24.65" shape-rendering="crispEdges"/><rect fill="#0000ff" x="12.2" y="123.5" width="207.4" height="24.65" shape-rendering="crispEdges"/><rect fill="#008000" x="219.6" y="123.5" width="744.2" height="24.65" shape-rendering="crispEdges"/><rect fill="#008000" x="963.8" y="123.5" width="12.2" height="24.65" shape-rendering="crispEdges"/><rect fill="#008000" x="0" y="147.9" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#ff0000" x="0" y="172.3" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#ff0000" x="0" y="196.7" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#ff0000" x="0" y="221.1" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#ff0000" x="0" y="245.5" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#ff0000" x="0" y="269.9" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#ff0000" x="0" y="294.3" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#ff0000" x="0" y="318.7" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#ff0000" x="0" y="343.1" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#ff0000" x="0" y="367.5" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#ff0000" x="0" y="391.9" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#ff0000" x="0" y="416.3" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#ff0000" x="0" y="440.7" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#ff0000" x="0" y="465.1" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#ff0000" x="0" y="489.5" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#ff0000" x="0" y="513.9" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#ff0000" x="0" y="538.3" width="976" height="24.65" shape-rendering="crispEdges"/><rect fill="#ff0000" x="0" y="562.7" width="976" height="24.65" shape-rendering="crispEdges"/>
7250+
<g class="terminal-2940916684-matrix">
7251+
<text class="terminal-2940916684-r1" x="0" y="20" textLength="976" clip-path="url(#terminal-2940916684-line-0)">┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓</text><text class="terminal-2940916684-r2" x="976" y="20" textLength="12.2" clip-path="url(#terminal-2940916684-line-0)">
7252+
</text><text class="terminal-2940916684-r1" x="0" y="44.4" textLength="12.2" clip-path="url(#terminal-2940916684-line-1)">┃</text><text class="terminal-2940916684-r3" x="12.2" y="44.4" textLength="207.4" clip-path="url(#terminal-2940916684-line-1)">┏━━━━━━━━━━━━━━━┓</text><text class="terminal-2940916684-r1" x="963.8" y="44.4" textLength="12.2" clip-path="url(#terminal-2940916684-line-1)">┃</text><text class="terminal-2940916684-r2" x="976" y="44.4" textLength="12.2" clip-path="url(#terminal-2940916684-line-1)">
7253+
</text><text class="terminal-2940916684-r1" x="0" y="68.8" textLength="12.2" clip-path="url(#terminal-2940916684-line-2)">┃</text><text class="terminal-2940916684-r3" x="12.2" y="68.8" textLength="12.2" clip-path="url(#terminal-2940916684-line-2)">┃</text><text class="terminal-2940916684-r4" x="24.4" y="68.8" textLength="183" clip-path="url(#terminal-2940916684-line-2)">┏━━━━━━━━━━━━━┓</text><text class="terminal-2940916684-r3" x="207.4" y="68.8" textLength="12.2" clip-path="url(#terminal-2940916684-line-2)">┃</text><text class="terminal-2940916684-r1" x="963.8" y="68.8" textLength="12.2" clip-path="url(#terminal-2940916684-line-2)">┃</text><text class="terminal-2940916684-r2" x="976" y="68.8" textLength="12.2" clip-path="url(#terminal-2940916684-line-2)">
7254+
</text><text class="terminal-2940916684-r1" x="0" y="93.2" textLength="12.2" clip-path="url(#terminal-2940916684-line-3)">┃</text><text class="terminal-2940916684-r3" x="12.2" y="93.2" textLength="12.2" clip-path="url(#terminal-2940916684-line-3)">┃</text><text class="terminal-2940916684-r4" x="24.4" y="93.2" textLength="12.2" clip-path="url(#terminal-2940916684-line-3)">┃</text><text class="terminal-2940916684-r5" x="36.6" y="93.2" textLength="158.6" clip-path="url(#terminal-2940916684-line-3)">JUST&#160;ONE&#160;LINE</text><text class="terminal-2940916684-r4" x="195.2" y="93.2" textLength="12.2" clip-path="url(#terminal-2940916684-line-3)">┃</text><text class="terminal-2940916684-r3" x="207.4" y="93.2" textLength="12.2" clip-path="url(#terminal-2940916684-line-3)">┃</text><text class="terminal-2940916684-r1" x="963.8" y="93.2" textLength="12.2" clip-path="url(#terminal-2940916684-line-3)">┃</text><text class="terminal-2940916684-r2" x="976" y="93.2" textLength="12.2" clip-path="url(#terminal-2940916684-line-3)">
7255+
</text><text class="terminal-2940916684-r1" x="0" y="117.6" textLength="12.2" clip-path="url(#terminal-2940916684-line-4)">┃</text><text class="terminal-2940916684-r3" x="12.2" y="117.6" textLength="12.2" clip-path="url(#terminal-2940916684-line-4)">┃</text><text class="terminal-2940916684-r4" x="24.4" y="117.6" textLength="183" clip-path="url(#terminal-2940916684-line-4)">┗━━━━━━━━━━━━━┛</text><text class="terminal-2940916684-r3" x="207.4" y="117.6" textLength="12.2" clip-path="url(#terminal-2940916684-line-4)">┃</text><text class="terminal-2940916684-r1" x="963.8" y="117.6" textLength="12.2" clip-path="url(#terminal-2940916684-line-4)">┃</text><text class="terminal-2940916684-r2" x="976" y="117.6" textLength="12.2" clip-path="url(#terminal-2940916684-line-4)">
7256+
</text><text class="terminal-2940916684-r1" x="0" y="142" textLength="12.2" clip-path="url(#terminal-2940916684-line-5)">┃</text><text class="terminal-2940916684-r3" x="12.2" y="142" textLength="207.4" clip-path="url(#terminal-2940916684-line-5)">┗━━━━━━━━━━━━━━━┛</text><text class="terminal-2940916684-r1" x="963.8" y="142" textLength="12.2" clip-path="url(#terminal-2940916684-line-5)">┃</text><text class="terminal-2940916684-r2" x="976" y="142" textLength="12.2" clip-path="url(#terminal-2940916684-line-5)">
7257+
</text><text class="terminal-2940916684-r1" x="0" y="166.4" textLength="976" clip-path="url(#terminal-2940916684-line-6)">┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛</text><text class="terminal-2940916684-r2" x="976" y="166.4" textLength="12.2" clip-path="url(#terminal-2940916684-line-6)">
7258+
</text><text class="terminal-2940916684-r2" x="976" y="190.8" textLength="12.2" clip-path="url(#terminal-2940916684-line-7)">
7259+
</text><text class="terminal-2940916684-r2" x="976" y="215.2" textLength="12.2" clip-path="url(#terminal-2940916684-line-8)">
7260+
</text><text class="terminal-2940916684-r2" x="976" y="239.6" textLength="12.2" clip-path="url(#terminal-2940916684-line-9)">
7261+
</text><text class="terminal-2940916684-r2" x="976" y="264" textLength="12.2" clip-path="url(#terminal-2940916684-line-10)">
7262+
</text><text class="terminal-2940916684-r2" x="976" y="288.4" textLength="12.2" clip-path="url(#terminal-2940916684-line-11)">
7263+
</text><text class="terminal-2940916684-r2" x="976" y="312.8" textLength="12.2" clip-path="url(#terminal-2940916684-line-12)">
7264+
</text><text class="terminal-2940916684-r2" x="976" y="337.2" textLength="12.2" clip-path="url(#terminal-2940916684-line-13)">
7265+
</text><text class="terminal-2940916684-r2" x="976" y="361.6" textLength="12.2" clip-path="url(#terminal-2940916684-line-14)">
7266+
</text><text class="terminal-2940916684-r2" x="976" y="386" textLength="12.2" clip-path="url(#terminal-2940916684-line-15)">
7267+
</text><text class="terminal-2940916684-r2" x="976" y="410.4" textLength="12.2" clip-path="url(#terminal-2940916684-line-16)">
7268+
</text><text class="terminal-2940916684-r2" x="976" y="434.8" textLength="12.2" clip-path="url(#terminal-2940916684-line-17)">
7269+
</text><text class="terminal-2940916684-r2" x="976" y="459.2" textLength="12.2" clip-path="url(#terminal-2940916684-line-18)">
7270+
</text><text class="terminal-2940916684-r2" x="976" y="483.6" textLength="12.2" clip-path="url(#terminal-2940916684-line-19)">
7271+
</text><text class="terminal-2940916684-r2" x="976" y="508" textLength="12.2" clip-path="url(#terminal-2940916684-line-20)">
7272+
</text><text class="terminal-2940916684-r2" x="976" y="532.4" textLength="12.2" clip-path="url(#terminal-2940916684-line-21)">
7273+
</text><text class="terminal-2940916684-r2" x="976" y="556.8" textLength="12.2" clip-path="url(#terminal-2940916684-line-22)">
7274+
</text>
7275+
</g>
7276+
</g>
7277+
</svg>
7278+
7279+
'''
7280+
# ---
71227281
# name: test_offsets
71237282
'''
71247283
<svg class="rich-terminal" viewBox="0 0 994 635.5999999999999" xmlns="http://www.w3.org/2000/svg">

0 commit comments

Comments
 (0)