Files
lawnchair/tests/assets/ReorderWidgets/simple_reorder_case
Sebastian Franco e7c3d3d4ce Parsing test boards from text files to be able to add more and bigger tests
It also adds an assets folder inside of Launcher3 tests.

It also fixes a bug in fullReorder.

Test: atest ReorderWidgets
Flag: none
Bug: 229292911
Change-Id: I7dadd42a3057d353326691163bb7db71a2e9dcc4
2023-04-13 17:14:51 +00:00

56 lines
1.6 KiB
Plaintext

###################################################################################################
# This file contains test case composed of the following tags:
# * # (coments): Lines starting with this character would be ignored.
# * arguments: is set of words separated by spaces that can later be parsed
# * board: represent a workspace, the first line is the dimensions of the board width x height (wxh)
# There are different characters on the board that represent different things:
# * x: The x character represents spaces that would be ignored, for example it can be used in
# the first row if we don't know how wide the smartspace is.
# * i: Represents an icon on the workspace, none in particular just an icon
# * [a-z]: Represents a widget and it can be any number or character
# except any other already in use. The whole continuos are of the same character is the
# area of the widget.
# * [A-Z]: Represents a folder and number of icons in the folder is represented by the order of
# letter in the alphabet, A=2, B=3, C=4 ... etc.
# Test are parsed by CellLayoutTestCaseReader.java and boards are parsed by CellLayoutBoard.java
###################################################################################################
# Test 5x5
board: 5x5
xxxxx
--mm-
--mm-
-----
-----
arguments: 0 4
board: 5x5
xxxxx
-----
-----
mm---
mm---
# Test 4x4
board: 4x4
xxxx
--mm
--mm
----
arguments: 3 3
board: 4x4
xxxx
----
--mm
--mm
# Test 6x5
board: 6x5
xxxxxx
-mm---
-mm---
------
------
arguments: 4 3
board: 6x5
xxxxxx
------
------
----mm
----mm