diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-12-05 03:13:37 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-12-06 21:26:07 -0500 |
commit | 3d8e234c1bcdae6e83465d08158188e76aa1aae9 (patch) | |
tree | 61aaa65ce08b0b917b8b6deb96b1a72d632b3616 /tests/data/fixtures/ris | |
parent | 820acef50154e1fbfd1559d4113c0a83505a9612 (diff) | |
download | vt100-rust-3d8e234c1bcdae6e83465d08158188e76aa1aae9.tar.gz vt100-rust-3d8e234c1bcdae6e83465d08158188e76aa1aae9.zip |
convert tests to fixtures
Diffstat (limited to 'tests/data/fixtures/ris')
-rw-r--r-- | tests/data/fixtures/ris/1.json | 36 | ||||
-rw-r--r-- | tests/data/fixtures/ris/1.typescript | 1 | ||||
-rw-r--r-- | tests/data/fixtures/ris/2.json | 10 | ||||
-rw-r--r-- | tests/data/fixtures/ris/2.typescript | 1 |
4 files changed, 48 insertions, 0 deletions
diff --git a/tests/data/fixtures/ris/1.json b/tests/data/fixtures/ris/1.json new file mode 100644 index 0000000..58b62c3 --- /dev/null +++ b/tests/data/fixtures/ris/1.json @@ -0,0 +1,36 @@ +{ + "contents": "foo", + "cells": { + "0,0": { + "contents": "f" + }, + "0,1": { + "contents": "o", + "fgcolor": "1", + "bgcolor": "7", + "bold": true, + "italic": true, + "underline": true + }, + "0,2": { + "contents": "o", + "fgcolor": "1", + "bgcolor": "7", + "bold": true, + "italic": true, + "underline": true + } + }, + "cursor_position": [ + 20, + 20 + ], + "title": "window title", + "icon_name": "window icon name", + "application_keypad": true, + "application_cursor": true, + "hide_cursor": true, + "bracketed_paste": true, + "mouse_protocol_mode": "press_release", + "mouse_protocol_encoding": "sgr" +}
\ No newline at end of file diff --git a/tests/data/fixtures/ris/1.typescript b/tests/data/fixtures/ris/1.typescript new file mode 100644 index 0000000..80e8afc --- /dev/null +++ b/tests/data/fixtures/ris/1.typescript @@ -0,0 +1 @@ +f[31m[47;1;3;4moo[7m[21;21H]2;window title]1;window icon name[?25l[?1h=[?9h[?1000h[?1006h[?2004hg
\ No newline at end of file diff --git a/tests/data/fixtures/ris/2.json b/tests/data/fixtures/ris/2.json new file mode 100644 index 0000000..ac3f4c2 --- /dev/null +++ b/tests/data/fixtures/ris/2.json @@ -0,0 +1,10 @@ +{ + "contents": "", + "cells": {}, + "cursor_position": [ + 0, + 0 + ], + "title": "window title", + "icon_name": "window icon name" +}
\ No newline at end of file diff --git a/tests/data/fixtures/ris/2.typescript b/tests/data/fixtures/ris/2.typescript new file mode 100644 index 0000000..c10be54 --- /dev/null +++ b/tests/data/fixtures/ris/2.typescript @@ -0,0 +1 @@ +c
\ No newline at end of file |