| 1 | [ |
| 2 | { |
| 3 | "name": "no steps: everything arrives with the slide", |
| 4 | "slide": {"id": "s", "blocks": [ |
| 5 | {"id": "h", "type": "heading", "text": [[{"t": "Title"}]]}, |
| 6 | {"id": "l", "type": "list", "items": "each", "text": [[{"t": "one"}], [{"t": "two"}]]} |
| 7 | ]}, |
| 8 | "presses": [] |
| 9 | }, |
| 10 | { |
| 11 | "name": "ties: equal values arrive on one press, in block order", |
| 12 | "slide": {"id": "s", "blocks": [ |
| 13 | {"id": "a", "type": "text", "step": 1, "text": [[{"t": "A"}]]}, |
| 14 | {"id": "b", "type": "text", "step": 2, "text": [[{"t": "B"}]]}, |
| 15 | {"id": "c", "type": "image", "step": 1} |
| 16 | ]}, |
| 17 | "presses": [ |
| 18 | [{"block": "a", "item": -1}, {"block": "c", "item": -1}], |
| 19 | [{"block": "b", "item": -1}] |
| 20 | ] |
| 21 | }, |
| 22 | { |
| 23 | "name": "1, 1.5, 2: a midpoint is a press between its neighbours", |
| 24 | "slide": {"id": "s", "blocks": [ |
| 25 | {"id": "two", "type": "text", "step": 2, "text": [[{"t": "2"}]]}, |
| 26 | {"id": "one", "type": "text", "step": 1, "text": [[{"t": "1"}]]}, |
| 27 | {"id": "mid", "type": "text", "step": 1.5, "text": [[{"t": "1.5"}]]} |
| 28 | ]}, |
| 29 | "presses": [ |
| 30 | [{"block": "one", "item": -1}], |
| 31 | [{"block": "mid", "item": -1}], |
| 32 | [{"block": "two", "item": -1}] |
| 33 | ] |
| 34 | }, |
| 35 | { |
| 36 | "name": "values compare exactly as stored", |
| 37 | "slide": {"id": "s", "blocks": [ |
| 38 | {"id": "a", "type": "shape", "step": 0.30000000000000004}, |
| 39 | {"id": "b", "type": "shape", "step": 0.3} |
| 40 | ]}, |
| 41 | "presses": [ |
| 42 | [{"block": "b", "item": -1}], |
| 43 | [{"block": "a", "item": -1}] |
| 44 | ] |
| 45 | }, |
| 46 | { |
| 47 | "name": "each: one press per item, the rest of its value with the first", |
| 48 | "slide": {"id": "s", "blocks": [ |
| 49 | {"id": "t", "type": "text", "step": 1, "text": [[{"t": "with the first item"}]]}, |
| 50 | {"id": "l", "type": "list", "step": 1, "items": "each", "text": [[{"t": "x"}], [{"t": "y"}], [{"t": "z"}]]}, |
| 51 | {"id": "u", "type": "text", "step": 2, "text": [[{"t": "after the list"}]]} |
| 52 | ]}, |
| 53 | "presses": [ |
| 54 | [{"block": "t", "item": -1}, {"block": "l", "item": 0}], |
| 55 | [{"block": "l", "item": 1}], |
| 56 | [{"block": "l", "item": 2}], |
| 57 | [{"block": "u", "item": -1}] |
| 58 | ] |
| 59 | }, |
| 60 | { |
| 61 | "name": "each with blank items: they take no press and keep their index", |
| 62 | "slide": {"id": "s", "blocks": [ |
| 63 | {"id": "l", "type": "list", "step": 1, "items": "each", "text": [ |
| 64 | [{"t": "a"}], [], [{"t": " "}], [{"t": "\u00a0"}, {"t": "\t\u0085"}], [{"t": "b", "b": true}] |
| 65 | ]} |
| 66 | ]}, |
| 67 | "presses": [ |
| 68 | [{"block": "l", "item": 0}], |
| 69 | [{"block": "l", "item": 4}] |
| 70 | ] |
| 71 | }, |
| 72 | { |
| 73 | "name": "an empty list makes no press, with or without each", |
| 74 | "slide": {"id": "s", "blocks": [ |
| 75 | {"id": "e1", "type": "list", "step": 1, "text": [[{"t": " "}], []]}, |
| 76 | {"id": "e2", "type": "list", "step": 2, "items": "each", "text": []}, |
| 77 | {"id": "e3", "type": "list", "step": 3, "items": "each"}, |
| 78 | {"id": "t", "type": "text", "step": 4, "text": [[{"t": "T"}]]} |
| 79 | ]}, |
| 80 | "presses": [ |
| 81 | [{"block": "t", "item": -1}] |
| 82 | ] |
| 83 | }, |
| 84 | { |
| 85 | "name": "a list without each arrives whole", |
| 86 | "slide": {"id": "s", "blocks": [ |
| 87 | {"id": "l", "type": "list", "step": 1, "items": "together", "text": [[{"t": "x"}], [{"t": "y"}]]} |
| 88 | ]}, |
| 89 | "presses": [ |
| 90 | [{"block": "l", "item": -1}] |
| 91 | ] |
| 92 | }, |
| 93 | { |
| 94 | "name": "two each lists tied pair up by index, the next value after the longest", |
| 95 | "slide": {"id": "s", "blocks": [ |
| 96 | {"id": "a", "type": "list", "step": 1, "items": "each", "text": [[{"t": "a0"}], [{"t": "a1"}]]}, |
| 97 | {"id": "b", "type": "list", "step": 1, "items": "each", "text": [[{"t": "b0"}], [{"t": ""}], [{"t": "b2"}], [{"t": "b3"}]]}, |
| 98 | {"id": "c", "type": "text", "step": 2, "text": [[{"t": "C"}]]} |
| 99 | ]}, |
| 100 | "presses": [ |
| 101 | [{"block": "a", "item": 0}, {"block": "b", "item": 0}], |
| 102 | [{"block": "a", "item": 1}, {"block": "b", "item": 2}], |
| 103 | [{"block": "b", "item": 3}], |
| 104 | [{"block": "c", "item": -1}] |
| 105 | ] |
| 106 | }, |
| 107 | { |
| 108 | "name": "each with no step arrives with the slide", |
| 109 | "slide": {"id": "s", "blocks": [ |
| 110 | {"id": "l", "type": "list", "items": "each", "text": [[{"t": "x"}], [{"t": "y"}]]}, |
| 111 | {"id": "t", "type": "text", "step": 1, "text": [[{"t": "T"}]]} |
| 112 | ]}, |
| 113 | "presses": [ |
| 114 | [{"block": "t", "item": -1}] |
| 115 | ] |
| 116 | }, |
| 117 | { |
| 118 | "name": "a blank text box makes no press; an image always shows", |
| 119 | "slide": {"id": "s", "blocks": [ |
| 120 | {"id": "h", "type": "heading", "step": 1, "text": [[{"t": " "}]]}, |
| 121 | {"id": "q", "type": "quote", "step": 2, "text": []}, |
| 122 | {"id": "x", "type": "text", "step": 3}, |
| 123 | {"id": "i", "type": "image", "step": 4} |
| 124 | ]}, |
| 125 | "presses": [ |
| 126 | [{"block": "i", "item": -1}] |
| 127 | ] |
| 128 | }, |
| 129 | { |
| 130 | "name": "child later than container: the child keeps its own value", |
| 131 | "slide": {"id": "s", "blocks": [ |
| 132 | {"id": "c", "type": "columns", "step": 1, "props": {"children": ["x", "y"]}}, |
| 133 | {"id": "x", "type": "text", "text": [[{"t": "with the box"}]]}, |
| 134 | {"id": "y", "type": "text", "step": 2, "text": [[{"t": "later"}]]} |
| 135 | ]}, |
| 136 | "presses": [ |
| 137 | [{"block": "c", "item": -1}], |
| 138 | [{"block": "y", "item": -1}] |
| 139 | ] |
| 140 | }, |
| 141 | { |
| 142 | "name": "child earlier than container: the child waits, and its own press goes", |
| 143 | "slide": {"id": "s", "blocks": [ |
| 144 | {"id": "c", "type": "columns", "step": 2, "props": {"children": ["x", "y"]}}, |
| 145 | {"id": "x", "type": "text", "step": 1, "text": [[{"t": "earlier"}]]}, |
| 146 | {"id": "y", "type": "image"} |
| 147 | ]}, |
| 148 | "presses": [ |
| 149 | [{"block": "c", "item": -1}, {"block": "x", "item": -1}] |
| 150 | ] |
| 151 | }, |
| 152 | { |
| 153 | "name": "a box two containers deep takes the latest of the three", |
| 154 | "slide": {"id": "s", "blocks": [ |
| 155 | {"id": "o", "type": "columns", "step": 2, "props": {"children": ["i"]}}, |
| 156 | {"id": "i", "type": "columns", "props": {"children": ["x"]}}, |
| 157 | {"id": "x", "type": "text", "step": 1, "text": [[{"t": "deep"}]]} |
| 158 | ]}, |
| 159 | "presses": [ |
| 160 | [{"block": "o", "item": -1}, {"block": "x", "item": -1}] |
| 161 | ] |
| 162 | }, |
| 163 | { |
| 164 | "name": "an each list in a later container starts at the container's value", |
| 165 | "slide": {"id": "s", "blocks": [ |
| 166 | {"id": "c", "type": "columns", "step": 2, "props": {"children": ["l"]}}, |
| 167 | {"id": "l", "type": "list", "step": 1, "items": "each", "text": [[{"t": "x"}], [{"t": "y"}]]} |
| 168 | ]}, |
| 169 | "presses": [ |
| 170 | [{"block": "c", "item": -1}, {"block": "l", "item": 0}], |
| 171 | [{"block": "l", "item": 1}] |
| 172 | ] |
| 173 | }, |
| 174 | { |
| 175 | "name": "empty columns make no press", |
| 176 | "slide": {"id": "s", "blocks": [ |
| 177 | {"id": "c1", "type": "columns", "step": 1, "props": {"children": []}}, |
| 178 | {"id": "c2", "type": "columns", "step": 2, "props": {"children": ["b", "gone"]}}, |
| 179 | {"id": "b", "type": "text", "text": [[{"t": " "}]]}, |
| 180 | {"id": "c3", "type": "columns", "step": 3, "props": {"children": ["c4"]}}, |
| 181 | {"id": "c4", "type": "columns", "props": {"children": ["e"]}}, |
| 182 | {"id": "e", "type": "list", "text": []}, |
| 183 | {"id": "t", "type": "text", "step": 4, "text": [[{"t": "T"}]]} |
| 184 | ]}, |
| 185 | "presses": [ |
| 186 | [{"block": "t", "item": -1}] |
| 187 | ] |
| 188 | }, |
| 189 | { |
| 190 | "name": "columns naming each other still settle", |
| 191 | "slide": {"id": "s", "blocks": [ |
| 192 | {"id": "a", "type": "columns", "step": 1, "props": {"children": ["b"]}}, |
| 193 | {"id": "b", "type": "columns", "step": 2, "props": {"children": ["a", "t"]}}, |
| 194 | {"id": "t", "type": "text", "text": [[{"t": "T"}]]} |
| 195 | ]}, |
| 196 | "presses": [ |
| 197 | [{"block": "a", "item": -1}, {"block": "b", "item": -1}] |
| 198 | ] |
| 199 | }, |
| 200 | {"name": "columns whose children all come later arrive with the first of them", "slide": {"id": "s", "blocks": [{"id": "c", "type": "columns", "step": 1, "props": {"children": ["y", "z"]}}, {"id": "y", "type": "text", "text": [[{"t": "y"}]], "step": 2}, {"id": "z", "type": "text", "text": [[{"t": "z"}]], "step": 3}, {"id": "r", "type": "text", "text": [[{"t": "r"}]], "step": 1}]}, "presses": [[{"block": "r", "item": -1}], [{"block": "c", "item": -1}, {"block": "y", "item": -1}], [{"block": "z", "item": -1}]]}, |
| 201 | {"name": "a blank child does not hold a columns box at its own value", "slide": {"id": "s", "blocks": [{"id": "c", "type": "columns", "step": 1, "props": {"children": ["b", "y"]}}, {"id": "b", "type": "text", "text": [[{"t": " "}]]}, {"id": "y", "type": "text", "text": [[{"t": "y"}]], "step": 2}]}, "presses": [[{"block": "c", "item": -1}, {"block": "y", "item": -1}]]}, |
| 202 | {"name": "an outer columns box waits through an inner one for its first child", "slide": {"id": "s", "blocks": [{"id": "o", "type": "columns", "step": 1, "props": {"children": ["i"]}}, {"id": "i", "type": "columns", "props": {"children": ["w"]}}, {"id": "w", "type": "text", "text": [[{"t": "w"}]], "step": 3}]}, "presses": [[{"block": "o", "item": -1}, {"block": "w", "item": -1}]]}, |
| 203 | {"name": "a scene block: one press per state after from, up to and including to, beside other steps", "scenes": {"w": {"states": [{"id": "a"}, {"id": "b"}, {"id": "c"}, {"id": "d"}]}}, "slide": {"id": "s", "blocks": [{"id": "t", "type": "text", "step": 1, "text": [[{"t": "with the first state"}]]}, {"id": "sc", "type": "scene", "step": 1, "props": {"scene": "w", "from": "a", "to": "c"}}, {"id": "u", "type": "text", "step": 2, "text": [[{"t": "after the scene"}]]}]}, "presses": [[{"block": "t", "item": -1}, {"block": "sc", "item": 1}], [{"block": "sc", "item": 2}], [{"block": "u", "item": -1}]]}, |
| 204 | {"name": "a scene block with no step starts right after the slide arrives", "scenes": {"w": {"states": [{"id": "a"}, {"id": "b"}, {"id": "c"}]}}, "slide": {"id": "s", "blocks": [{"id": "t", "type": "text", "step": 1, "text": [[{"t": "T"}]]}, {"id": "sc", "type": "scene", "props": {"scene": "w", "from": "a", "to": "c"}}]}, "presses": [[{"block": "sc", "item": 1}], [{"block": "sc", "item": 2}], [{"block": "t", "item": -1}]]}, |
| 205 | {"name": "a scene block starting mid-way counts states by their place in the scene", "scenes": {"w": {"states": [{"id": "a"}, {"id": "b"}, {"id": "c"}, {"id": "d"}]}}, "slide": {"id": "s", "blocks": [{"id": "sc", "type": "scene", "step": 1, "props": {"scene": "w", "from": "b", "to": "d"}}]}, "presses": [[{"block": "sc", "item": 2}], [{"block": "sc", "item": 3}]]}, |
| 206 | {"name": "from equal to to, a removed scene, a removed state or from after to: no presses", "scenes": {"w": {"states": [{"id": "a"}, {"id": "b"}, {"id": "c"}]}}, "slide": {"id": "s", "blocks": [{"id": "same", "type": "scene", "step": 1, "props": {"scene": "w", "from": "b", "to": "b"}}, {"id": "gone", "type": "scene", "step": 1, "props": {"scene": "nope", "from": "a", "to": "c"}}, {"id": "lost", "type": "scene", "step": 2, "props": {"scene": "w", "from": "a", "to": "zz"}}, {"id": "lostfrom", "type": "scene", "props": {"scene": "w", "from": "zz", "to": "c"}}, {"id": "back", "type": "scene", "step": 3, "props": {"scene": "w", "from": "c", "to": "a"}}, {"id": "bare", "type": "scene"}, {"id": "t", "type": "text", "step": 4, "text": [[{"t": "T"}]]}]}, "presses": [[{"block": "t", "item": -1}]]}, |
| 207 | {"name": "a scene with no scenes known makes no press", "slide": {"id": "s", "blocks": [{"id": "sc", "type": "scene", "step": 1, "props": {"scene": "w", "from": "a", "to": "c"}}]}, "presses": []}, |
| 208 | {"name": "a scene and an each list tied at one value pair up by index", "scenes": {"w": {"states": [{"id": "a"}, {"id": "b"}, {"id": "c"}, {"id": "d"}]}}, "slide": {"id": "s", "blocks": [{"id": "l", "type": "list", "step": 1, "items": "each", "text": [[{"t": "x"}], [{"t": "y"}]]}, {"id": "sc", "type": "scene", "step": 1, "props": {"scene": "w", "from": "a", "to": "d"}}, {"id": "u", "type": "text", "step": 2, "text": [[{"t": "U"}]]}]}, "presses": [[{"block": "l", "item": 0}, {"block": "sc", "item": 1}], [{"block": "l", "item": 1}, {"block": "sc", "item": 2}], [{"block": "sc", "item": 3}], [{"block": "u", "item": -1}]]}, |
| 209 | {"name": "a scene block with no step inside a stepped columns box starts with it", "scenes": {"w": {"states": [{"id": "a"}, {"id": "b"}]}}, "slide": {"id": "s", "blocks": [{"id": "c", "type": "columns", "step": 2, "props": {"children": ["sc"]}}, {"id": "sc", "type": "scene", "props": {"scene": "w", "from": "a", "to": "b"}}, {"id": "t", "type": "text", "step": 1, "text": [[{"t": "T"}]]}]}, "presses": [[{"block": "t", "item": -1}], [{"block": "c", "item": -1}, {"block": "sc", "item": 1}]]}, |
| 210 | {"name": "a clip on a press takes one press, right after arrival with no step; loop and once take none of their own", "slide": {"id": "s", "blocks": [{"id": "c1", "type": "clip", "step": 2, "props": {"asset": "v1", "play": "press"}}, {"id": "c2", "type": "clip", "props": {"asset": "v2", "play": "press"}}, {"id": "c3", "type": "clip", "props": {"asset": "v3", "play": "loop"}}, {"id": "c5", "type": "clip", "props": {"asset": "v5", "play": "once"}}, {"id": "c4", "type": "clip", "step": 1, "props": {"asset": "v4", "play": "once"}}, {"id": "t", "type": "text", "step": 1, "text": [[{"t": "T"}]]}]}, "presses": [[{"block": "c2", "item": -1}], [{"block": "c4", "item": -1}, {"block": "t", "item": -1}], [{"block": "c1", "item": -1}]]}, |
| 211 | {"name": "a scene with no step and a press clip with none share the first press", "scenes": {"w": {"states": [{"id": "a"}, {"id": "b"}, {"id": "c"}]}}, "slide": {"id": "s", "blocks": [{"id": "v", "type": "clip", "props": {"asset": "v1", "play": "press"}}, {"id": "sc", "type": "scene", "props": {"scene": "w", "from": "a", "to": "c"}}]}, "presses": [[{"block": "v", "item": -1}, {"block": "sc", "item": 1}], [{"block": "sc", "item": 2}]]} |
| 212 | ] |
| 213 | |