Update more snapshot tests
All checks were successful
timw4mail/php-kilo/pipeline/head This commit looks good

This commit is contained in:
Timothy Warren 2021-03-17 15:43:24 -04:00
parent 50151b7e18
commit d92ca27880
3 changed files with 8922 additions and 8885 deletions

View File

@ -41,7 +41,7 @@ class EditorTest extends TestCase {
{ {
$editor = MockEditor::mock('test.php'); $editor = MockEditor::mock('test.php');
$state = json_encode($editor, JSON_THROW_ON_ERROR); $state = json_encode($editor->__debugInfo(), JSON_THROW_ON_ERROR);
$this->assertMatchesJsonSnapshot($state); $this->assertMatchesJsonSnapshot($state);
} }
@ -49,7 +49,7 @@ class EditorTest extends TestCase {
{ {
$editor = MockEditor::mock('src/ffi.h'); $editor = MockEditor::mock('src/ffi.h');
$state = json_encode($editor, JSON_THROW_ON_ERROR); $state = json_encode($editor->__debugInfo(), JSON_THROW_ON_ERROR);
$this->assertMatchesJsonSnapshot($state); $this->assertMatchesJsonSnapshot($state);
} }
} }

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,57 @@
{ {
"cursor": {
"x": 0,
"y": 0
},
"document": {
"fileType": {
"name": "C",
"syntax": {
"tokens": [],
"filetype": "C",
"keywords1": [
"continue",
"typedef",
"switch",
"return",
"static",
"while",
"break",
"struct",
"union",
"class",
"else",
"enum",
"for",
"case",
"if"
],
"keywords2": [
"#include",
"unsigned",
"#define",
"#ifndef",
"double",
"signed",
"#endif",
"#ifdef",
"float",
"#error",
"#undef",
"long",
"char",
"int",
"void",
"#if"
],
"singleLineCommentStart": "\/\/",
"multiLineCommentStart": "\/*",
"multiLineCommentEnd": "*\/",
"flags": 3
}
},
"tokens": [],
"filename": "src\/ffi.h",
"rows": [ "rows": [
{ {
"render": "\/**", "render": "\/**",
@ -2032,55 +2085,20 @@
"idx": 67 "idx": 67
} }
], ],
"dirty": false, "dirty": false
"filename": "src\/ffi.h",
"syntax": {
"tokens": [],
"filetype": "C",
"filematch": [
".c",
".h",
".cpp"
],
"keywords1": [
"continue",
"typedef",
"switch",
"return",
"static",
"while",
"break",
"struct",
"union",
"class",
"else",
"enum",
"for",
"case",
"if"
],
"keywords2": [
"#include",
"unsigned",
"#define",
"#ifndef",
"double",
"signed",
"#endif",
"#ifdef",
"float",
"#error",
"#undef",
"long",
"char",
"int",
"void",
"#if"
],
"singleLineCommentStart": "\/\/",
"multiLineCommentStart": "\/*",
"multiLineCommentEnd": "*\/",
"flags": 3
}, },
"tokens": [] "offset": {
"x": 0,
"y": 0
},
"renderX": 0,
"terminalSize": {
"rows": 21,
"cols": 80
},
"statusMessage": {
"text": "HELP: Ctrl-S = save | Ctrl-Q = quit | Ctrl-F = find",
"len": 51,
"time": 1234567890
}
} }