Skip to content

Commit

Permalink
fixed scrollbar-related tests
Browse files Browse the repository at this point in the history
  • Loading branch information
s77rt committed Jul 27, 2021
1 parent 4d93bbb commit 8be6df4
Show file tree
Hide file tree
Showing 25 changed files with 244 additions and 53 deletions.
Expand Up @@ -11,6 +11,14 @@
<text bold pos="8,8" size="65x21">Test2</text>
</widget>
</container>
<widget pos="0,31" size="110x6" type="*widget.scrollBarArea">
<widget pos="0,3" size="72x3" type="*widget.scrollBar">
<rectangle fillColor="scrollbar" size="72x3"/>
</widget>
</widget>
<widget pos="110,0" size="0x37" type="*widget.Shadow">
<linearGradient angle="270" endColor="shadow" pos="-8,0" size="8x37"/>
</widget>
</widget>
<container pos="114,0" size="36x37">
<widget size="36x37" type="*widget.Button">
Expand Down
Expand Up @@ -11,6 +11,14 @@
<text bold pos="8,8" size="65x21">Test2</text>
</widget>
</container>
<widget pos="0,31" size="110x6" type="*widget.scrollBarArea">
<widget pos="0,3" size="72x3" type="*widget.scrollBar">
<rectangle fillColor="scrollbar" size="72x3"/>
</widget>
</widget>
<widget pos="110,0" size="0x37" type="*widget.Shadow">
<linearGradient angle="270" endColor="shadow" pos="-8,0" size="8x37"/>
</widget>
</widget>
<container pos="114,0" size="36x37">
<widget size="36x37" type="*widget.Button">
Expand Down
8 changes: 8 additions & 0 deletions container/testdata/doctabs/desktop/change_content_initial.xml
Expand Up @@ -11,6 +11,14 @@
<text bold pos="8,8" size="65x21">Test2</text>
</widget>
</container>
<widget pos="0,31" size="110x6" type="*widget.scrollBarArea">
<widget pos="0,3" size="72x3" type="*widget.scrollBar">
<rectangle fillColor="scrollbar" size="72x3"/>
</widget>
</widget>
<widget pos="110,0" size="0x37" type="*widget.Shadow">
<linearGradient angle="270" endColor="shadow" pos="-8,0" size="8x37"/>
</widget>
</widget>
<container pos="114,0" size="36x37">
<widget size="36x37" type="*widget.Button">
Expand Down
Expand Up @@ -11,6 +11,14 @@
<text bold pos="8,8" size="65x21">Test2</text>
</widget>
</container>
<widget pos="0,31" size="110x6" type="*widget.scrollBarArea">
<widget pos="0,3" size="70x3" type="*widget.scrollBar">
<rectangle fillColor="scrollbar" size="70x3"/>
</widget>
</widget>
<widget pos="110,0" size="0x37" type="*widget.Shadow">
<linearGradient angle="270" endColor="shadow" pos="-8,0" size="8x37"/>
</widget>
</widget>
<container pos="114,0" size="36x37">
<widget size="36x37" type="*widget.Button">
Expand Down
Expand Up @@ -11,6 +11,14 @@
<text bold pos="8,8" size="71x21">New 2</text>
</widget>
</container>
<widget pos="0,31" size="110x6" type="*widget.scrollBarArea">
<widget pos="0,3" size="67x3" type="*widget.scrollBar">
<rectangle fillColor="scrollbar" size="67x3"/>
</widget>
</widget>
<widget pos="110,0" size="0x37" type="*widget.Shadow">
<linearGradient angle="270" endColor="shadow" pos="-8,0" size="8x37"/>
</widget>
</widget>
<container pos="114,0" size="36x37">
<widget size="36x37" type="*widget.Button">
Expand Down
8 changes: 8 additions & 0 deletions container/testdata/doctabs/desktop/change_label_initial.xml
Expand Up @@ -11,6 +11,14 @@
<text bold pos="8,8" size="65x21">Test2</text>
</widget>
</container>
<widget pos="0,31" size="110x6" type="*widget.scrollBarArea">
<widget pos="0,3" size="72x3" type="*widget.scrollBar">
<rectangle fillColor="scrollbar" size="72x3"/>
</widget>
</widget>
<widget pos="110,0" size="0x37" type="*widget.Shadow">
<linearGradient angle="270" endColor="shadow" pos="-8,0" size="8x37"/>
</widget>
</widget>
<container pos="114,0" size="36x37">
<widget size="36x37" type="*widget.Button">
Expand Down
Expand Up @@ -17,6 +17,14 @@
<text bold pos="8,8" size="65x21">Test5</text>
</widget>
</container>
<widget pos="0,31" size="260x6" type="*widget.scrollBarArea">
<widget pos="0,3" size="201x3" type="*widget.scrollBar">
<rectangle fillColor="scrollbar" size="201x3"/>
</widget>
</widget>
<widget pos="260,0" size="0x37" type="*widget.Shadow">
<linearGradient angle="270" endColor="shadow" pos="-8,0" size="8x37"/>
</widget>
</widget>
<container pos="264,0" size="36x37">
<widget size="36x37" type="*widget.Button">
Expand Down
8 changes: 8 additions & 0 deletions container/testdata/doctabs/desktop/hover_all_tabs.xml
Expand Up @@ -11,6 +11,14 @@
<text bold pos="8,8" size="65x21">Test2</text>
</widget>
</container>
<widget pos="0,31" size="70x6" type="*widget.scrollBarArea">
<widget pos="0,3" size="29x3" type="*widget.scrollBar">
<rectangle fillColor="scrollbar" size="29x3"/>
</widget>
</widget>
<widget pos="70,0" size="0x37" type="*widget.Shadow">
<linearGradient angle="270" endColor="shadow" pos="-8,0" size="8x37"/>
</widget>
</widget>
<container pos="74,0" size="76x37">
<widget size="36x37" type="*widget.Button">
Expand Down
8 changes: 8 additions & 0 deletions container/testdata/doctabs/desktop/hover_create_tab.xml
Expand Up @@ -11,6 +11,14 @@
<text bold pos="8,8" size="65x21">Test2</text>
</widget>
</container>
<widget pos="0,31" size="70x6" type="*widget.scrollBarArea">
<widget pos="0,3" size="29x3" type="*widget.scrollBar">
<rectangle fillColor="scrollbar" size="29x3"/>
</widget>
</widget>
<widget pos="70,0" size="0x37" type="*widget.Shadow">
<linearGradient angle="270" endColor="shadow" pos="-8,0" size="8x37"/>
</widget>
</widget>
<container pos="74,0" size="76x37">
<widget size="36x37" type="*widget.Button">
Expand Down
8 changes: 8 additions & 0 deletions container/testdata/doctabs/desktop/hover_first.xml
Expand Up @@ -15,6 +15,14 @@
<text bold pos="8,8" size="65x21">Test2</text>
</widget>
</container>
<widget pos="0,31" size="70x6" type="*widget.scrollBarArea">
<widget pos="0,3" size="29x3" type="*widget.scrollBar">
<rectangle fillColor="scrollbar" size="29x3"/>
</widget>
</widget>
<widget pos="70,0" size="0x37" type="*widget.Shadow">
<linearGradient angle="270" endColor="shadow" pos="-8,0" size="8x37"/>
</widget>
</widget>
<container pos="74,0" size="76x37">
<widget size="36x37" type="*widget.Button">
Expand Down
8 changes: 8 additions & 0 deletions container/testdata/doctabs/desktop/hover_first_close.xml
Expand Up @@ -11,6 +11,14 @@
<text bold pos="8,8" size="65x21">Test2</text>
</widget>
</container>
<widget pos="0,31" size="70x6" type="*widget.scrollBarArea">
<widget pos="0,3" size="29x3" type="*widget.scrollBar">
<rectangle fillColor="scrollbar" size="29x3"/>
</widget>
</widget>
<widget pos="70,0" size="0x37" type="*widget.Shadow">
<linearGradient angle="270" endColor="shadow" pos="-8,0" size="8x37"/>
</widget>
</widget>
<container pos="74,0" size="76x37">
<widget size="36x37" type="*widget.Button">
Expand Down
8 changes: 8 additions & 0 deletions container/testdata/doctabs/desktop/hover_none.xml
Expand Up @@ -11,6 +11,14 @@
<text bold pos="8,8" size="65x21">Test2</text>
</widget>
</container>
<widget pos="0,31" size="70x6" type="*widget.scrollBarArea">
<widget pos="0,3" size="29x3" type="*widget.scrollBar">
<rectangle fillColor="scrollbar" size="29x3"/>
</widget>
</widget>
<widget pos="70,0" size="0x37" type="*widget.Shadow">
<linearGradient angle="270" endColor="shadow" pos="-8,0" size="8x37"/>
</widget>
</widget>
<container pos="74,0" size="76x37">
<widget size="36x37" type="*widget.Button">
Expand Down
8 changes: 8 additions & 0 deletions container/testdata/doctabs/desktop/hover_second.xml
Expand Up @@ -11,6 +11,14 @@
<text bold pos="8,8" size="65x21">Test2</text>
</widget>
</container>
<widget pos="0,31" size="70x6" type="*widget.scrollBarArea">
<widget pos="0,3" size="29x3" type="*widget.scrollBar">
<rectangle fillColor="scrollbar" size="29x3"/>
</widget>
</widget>
<widget pos="70,0" size="0x37" type="*widget.Shadow">
<linearGradient angle="270" endColor="shadow" pos="-8,0" size="8x37"/>
</widget>
</widget>
<container pos="74,0" size="76x37">
<widget size="36x37" type="*widget.Button">
Expand Down
Binary file modified container/testdata/doctabs/desktop/single_custom_theme.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions container/testdata/doctabs/desktop/tab_location_bottom.xml
Expand Up @@ -14,6 +14,14 @@
<text bold pos="8,8" size="65x21">Test3</text>
</widget>
</container>
<widget pos="0,31" size="20x6" type="*widget.scrollBarArea">
<widget pos="0,3" size="16x3" type="*widget.scrollBar">
<rectangle fillColor="scrollbar" size="16x3"/>
</widget>
</widget>
<widget pos="20,0" size="0x37" type="*widget.Shadow">
<linearGradient angle="270" endColor="shadow" pos="-8,0" size="8x37"/>
</widget>
</widget>
<container pos="24,0" size="36x37">
<widget size="36x37" type="*widget.Button">
Expand Down
8 changes: 8 additions & 0 deletions container/testdata/doctabs/desktop/tab_location_leading.xml
Expand Up @@ -14,6 +14,14 @@
<text bold pos="4,8" size="65x21">Test3</text>
</widget>
</container>
<widget pos="67,0" size="6x-4" type="*widget.scrollBarArea">
<widget pos="3,0" size="3x16" type="*widget.scrollBar">
<rectangle fillColor="scrollbar" size="3x16"/>
</widget>
</widget>
<widget pos="0,-4" size="73x0" type="*widget.Shadow">
<linearGradient endColor="shadow" pos="0,-8" size="73x8"/>
</widget>
</widget>
<container size="73x37">
<widget size="36x37" type="*widget.Button">
Expand Down
8 changes: 8 additions & 0 deletions container/testdata/doctabs/desktop/tab_location_top.xml
Expand Up @@ -14,6 +14,14 @@
<text bold pos="8,8" size="65x21">Test3</text>
</widget>
</container>
<widget pos="0,31" size="20x6" type="*widget.scrollBarArea">
<widget pos="0,3" size="16x3" type="*widget.scrollBar">
<rectangle fillColor="scrollbar" size="16x3"/>
</widget>
</widget>
<widget pos="20,0" size="0x37" type="*widget.Shadow">
<linearGradient angle="270" endColor="shadow" pos="-8,0" size="8x37"/>
</widget>
</widget>
<container pos="24,0" size="36x37">
<widget size="36x37" type="*widget.Button">
Expand Down
8 changes: 8 additions & 0 deletions container/testdata/doctabs/desktop/tab_location_trailing.xml
Expand Up @@ -14,6 +14,14 @@
<text bold pos="4,8" size="65x21">Test3</text>
</widget>
</container>
<widget pos="67,0" size="6x-4" type="*widget.scrollBarArea">
<widget pos="3,0" size="3x16" type="*widget.scrollBar">
<rectangle fillColor="scrollbar" size="3x16"/>
</widget>
</widget>
<widget pos="0,-4" size="73x0" type="*widget.Shadow">
<linearGradient endColor="shadow" pos="0,-8" size="73x8"/>
</widget>
</widget>
<container size="73x37">
<widget size="36x37" type="*widget.Button">
Expand Down
8 changes: 8 additions & 0 deletions container/testdata/doctabs/desktop/tapped_all_tabs.xml
Expand Up @@ -17,6 +17,14 @@
<text bold color="primary" pos="8,8" size="87x21">Another</text>
</widget>
</container>
<widget pos="0,31" size="220x6" type="*widget.scrollBarArea">
<widget pos="84,3" size="135x3" type="*widget.scrollBar">
<rectangle fillColor="scrollbar" size="135x3"/>
</widget>
</widget>
<widget size="0x37" type="*widget.Shadow">
<linearGradient angle="270" size="8x37" startColor="shadow"/>
</widget>
</widget>
<container pos="224,0" size="76x37">
<widget size="36x37" type="*widget.Button">
Expand Down
8 changes: 8 additions & 0 deletions container/testdata/doctabs/desktop/tapped_create_tab.xml
Expand Up @@ -17,6 +17,14 @@
<text bold color="primary" pos="8,8" size="87x21">Another</text>
</widget>
</container>
<widget pos="0,31" size="220x6" type="*widget.scrollBarArea">
<widget pos="84,3" size="135x3" type="*widget.scrollBar">
<rectangle fillColor="scrollbar" size="135x3"/>
</widget>
</widget>
<widget size="0x37" type="*widget.Shadow">
<linearGradient angle="270" size="8x37" startColor="shadow"/>
</widget>
</widget>
<container pos="224,0" size="76x37">
<widget size="36x37" type="*widget.Button">
Expand Down
8 changes: 8 additions & 0 deletions container/testdata/doctabs/desktop/tapped_first_selected.xml
Expand Up @@ -14,6 +14,14 @@
<text bold pos="8,8" size="65x21">Test3</text>
</widget>
</container>
<widget pos="0,31" size="220x6" type="*widget.scrollBarArea">
<widget pos="0,3" size="192x3" type="*widget.scrollBar">
<rectangle fillColor="scrollbar" size="192x3"/>
</widget>
</widget>
<widget pos="220,0" size="0x37" type="*widget.Shadow">
<linearGradient angle="270" endColor="shadow" pos="-8,0" size="8x37"/>
</widget>
</widget>
<container pos="224,0" size="76x37">
<widget size="36x37" type="*widget.Button">
Expand Down
8 changes: 8 additions & 0 deletions container/testdata/doctabs/desktop/tapped_second_selected.xml
Expand Up @@ -14,6 +14,14 @@
<text bold pos="8,8" size="65x21">Test3</text>
</widget>
</container>
<widget pos="0,31" size="220x6" type="*widget.scrollBarArea">
<widget pos="0,3" size="192x3" type="*widget.scrollBar">
<rectangle fillColor="scrollbar" size="192x3"/>
</widget>
</widget>
<widget pos="220,0" size="0x37" type="*widget.Shadow">
<linearGradient angle="270" endColor="shadow" pos="-8,0" size="8x37"/>
</widget>
</widget>
<container pos="224,0" size="76x37">
<widget size="36x37" type="*widget.Button">
Expand Down
8 changes: 8 additions & 0 deletions container/testdata/doctabs/desktop/tapped_third_selected.xml
Expand Up @@ -14,6 +14,14 @@
<text bold color="primary" pos="8,8" size="65x21">Test3</text>
</widget>
</container>
<widget pos="0,31" size="220x6" type="*widget.scrollBarArea">
<widget pos="27,3" size="192x3" type="*widget.scrollBar">
<rectangle fillColor="scrollbar" size="192x3"/>
</widget>
</widget>
<widget size="0x37" type="*widget.Shadow">
<linearGradient angle="270" size="8x37" startColor="shadow"/>
</widget>
</widget>
<container pos="224,0" size="76x37">
<widget size="36x37" type="*widget.Button">
Expand Down

0 comments on commit 8be6df4

Please sign in to comment.