[ { "name": "no steps: everything arrives with the slide", "slide": {"id": "s", "blocks": [ {"id": "h", "type": "heading", "text": [[{"t": "Title"}]]}, {"id": "l", "type": "list", "items": "each", "text": [[{"t": "one"}], [{"t": "two"}]]} ]}, "presses": [] }, { "name": "ties: equal values arrive on one press, in block order", "slide": {"id": "s", "blocks": [ {"id": "a", "type": "text", "step": 1, "text": [[{"t": "A"}]]}, {"id": "b", "type": "text", "step": 2, "text": [[{"t": "B"}]]}, {"id": "c", "type": "image", "step": 1} ]}, "presses": [ [{"block": "a", "item": -1}, {"block": "c", "item": -1}], [{"block": "b", "item": -1}] ] }, { "name": "1, 1.5, 2: a midpoint is a press between its neighbours", "slide": {"id": "s", "blocks": [ {"id": "two", "type": "text", "step": 2, "text": [[{"t": "2"}]]}, {"id": "one", "type": "text", "step": 1, "text": [[{"t": "1"}]]}, {"id": "mid", "type": "text", "step": 1.5, "text": [[{"t": "1.5"}]]} ]}, "presses": [ [{"block": "one", "item": -1}], [{"block": "mid", "item": -1}], [{"block": "two", "item": -1}] ] }, { "name": "values compare exactly as stored", "slide": {"id": "s", "blocks": [ {"id": "a", "type": "shape", "step": 0.30000000000000004}, {"id": "b", "type": "shape", "step": 0.3} ]}, "presses": [ [{"block": "b", "item": -1}], [{"block": "a", "item": -1}] ] }, { "name": "each: one press per item, the rest of its value with the first", "slide": {"id": "s", "blocks": [ {"id": "t", "type": "text", "step": 1, "text": [[{"t": "with the first item"}]]}, {"id": "l", "type": "list", "step": 1, "items": "each", "text": [[{"t": "x"}], [{"t": "y"}], [{"t": "z"}]]}, {"id": "u", "type": "text", "step": 2, "text": [[{"t": "after the list"}]]} ]}, "presses": [ [{"block": "t", "item": -1}, {"block": "l", "item": 0}], [{"block": "l", "item": 1}], [{"block": "l", "item": 2}], [{"block": "u", "item": -1}] ] }, { "name": "each with blank items: they take no press and keep their index", "slide": {"id": "s", "blocks": [ {"id": "l", "type": "list", "step": 1, "items": "each", "text": [ [{"t": "a"}], [], [{"t": " "}], [{"t": "\u00a0"}, {"t": "\t\u0085"}], [{"t": "b", "b": true}] ]} ]}, "presses": [ [{"block": "l", "item": 0}], [{"block": "l", "item": 4}] ] }, { "name": "an empty list makes no press, with or without each", "slide": {"id": "s", "blocks": [ {"id": "e1", "type": "list", "step": 1, "text": [[{"t": " "}], []]}, {"id": "e2", "type": "list", "step": 2, "items": "each", "text": []}, {"id": "e3", "type": "list", "step": 3, "items": "each"}, {"id": "t", "type": "text", "step": 4, "text": [[{"t": "T"}]]} ]}, "presses": [ [{"block": "t", "item": -1}] ] }, { "name": "a list without each arrives whole", "slide": {"id": "s", "blocks": [ {"id": "l", "type": "list", "step": 1, "items": "together", "text": [[{"t": "x"}], [{"t": "y"}]]} ]}, "presses": [ [{"block": "l", "item": -1}] ] }, { "name": "two each lists tied pair up by index, the next value after the longest", "slide": {"id": "s", "blocks": [ {"id": "a", "type": "list", "step": 1, "items": "each", "text": [[{"t": "a0"}], [{"t": "a1"}]]}, {"id": "b", "type": "list", "step": 1, "items": "each", "text": [[{"t": "b0"}], [{"t": ""}], [{"t": "b2"}], [{"t": "b3"}]]}, {"id": "c", "type": "text", "step": 2, "text": [[{"t": "C"}]]} ]}, "presses": [ [{"block": "a", "item": 0}, {"block": "b", "item": 0}], [{"block": "a", "item": 1}, {"block": "b", "item": 2}], [{"block": "b", "item": 3}], [{"block": "c", "item": -1}] ] }, { "name": "each with no step arrives with the slide", "slide": {"id": "s", "blocks": [ {"id": "l", "type": "list", "items": "each", "text": [[{"t": "x"}], [{"t": "y"}]]}, {"id": "t", "type": "text", "step": 1, "text": [[{"t": "T"}]]} ]}, "presses": [ [{"block": "t", "item": -1}] ] }, { "name": "a blank text box makes no press; an image always shows", "slide": {"id": "s", "blocks": [ {"id": "h", "type": "heading", "step": 1, "text": [[{"t": " "}]]}, {"id": "q", "type": "quote", "step": 2, "text": []}, {"id": "x", "type": "text", "step": 3}, {"id": "i", "type": "image", "step": 4} ]}, "presses": [ [{"block": "i", "item": -1}] ] }, { "name": "child later than container: the child keeps its own value", "slide": {"id": "s", "blocks": [ {"id": "c", "type": "columns", "step": 1, "props": {"children": ["x", "y"]}}, {"id": "x", "type": "text", "text": [[{"t": "with the box"}]]}, {"id": "y", "type": "text", "step": 2, "text": [[{"t": "later"}]]} ]}, "presses": [ [{"block": "c", "item": -1}], [{"block": "y", "item": -1}] ] }, { "name": "child earlier than container: the child waits, and its own press goes", "slide": {"id": "s", "blocks": [ {"id": "c", "type": "columns", "step": 2, "props": {"children": ["x", "y"]}}, {"id": "x", "type": "text", "step": 1, "text": [[{"t": "earlier"}]]}, {"id": "y", "type": "image"} ]}, "presses": [ [{"block": "c", "item": -1}, {"block": "x", "item": -1}] ] }, { "name": "a box two containers deep takes the latest of the three", "slide": {"id": "s", "blocks": [ {"id": "o", "type": "columns", "step": 2, "props": {"children": ["i"]}}, {"id": "i", "type": "columns", "props": {"children": ["x"]}}, {"id": "x", "type": "text", "step": 1, "text": [[{"t": "deep"}]]} ]}, "presses": [ [{"block": "o", "item": -1}, {"block": "x", "item": -1}] ] }, { "name": "an each list in a later container starts at the container's value", "slide": {"id": "s", "blocks": [ {"id": "c", "type": "columns", "step": 2, "props": {"children": ["l"]}}, {"id": "l", "type": "list", "step": 1, "items": "each", "text": [[{"t": "x"}], [{"t": "y"}]]} ]}, "presses": [ [{"block": "c", "item": -1}, {"block": "l", "item": 0}], [{"block": "l", "item": 1}] ] }, { "name": "empty columns make no press", "slide": {"id": "s", "blocks": [ {"id": "c1", "type": "columns", "step": 1, "props": {"children": []}}, {"id": "c2", "type": "columns", "step": 2, "props": {"children": ["b", "gone"]}}, {"id": "b", "type": "text", "text": [[{"t": " "}]]}, {"id": "c3", "type": "columns", "step": 3, "props": {"children": ["c4"]}}, {"id": "c4", "type": "columns", "props": {"children": ["e"]}}, {"id": "e", "type": "list", "text": []}, {"id": "t", "type": "text", "step": 4, "text": [[{"t": "T"}]]} ]}, "presses": [ [{"block": "t", "item": -1}] ] }, { "name": "columns naming each other still settle", "slide": {"id": "s", "blocks": [ {"id": "a", "type": "columns", "step": 1, "props": {"children": ["b"]}}, {"id": "b", "type": "columns", "step": 2, "props": {"children": ["a", "t"]}}, {"id": "t", "type": "text", "text": [[{"t": "T"}]]} ]}, "presses": [ [{"block": "a", "item": -1}, {"block": "b", "item": -1}] ] }, {"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}]]}, {"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}]]}, {"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}]]}, {"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}]]}, {"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}]]}, {"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}]]}, {"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}]]}, {"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": []}, {"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}]]}, {"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}]]}, {"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}]]}, {"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}]]} ]