Skip to content

Commit

Permalink
Fixed console preferences persistence
Browse files Browse the repository at this point in the history
  • Loading branch information
maccasoft committed Jun 5, 2023
1 parent a2489ee commit e49da4b
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ void testDefaultPreferences() throws Exception {
+ " \"type\" : 0,\n"
+ " \"baudRate\" : 115200\n"
+ " },\n"
+ " \"console\" : { }\n"
+ " \"console\" : {\n"
+ " \"maxLines\" : 500,\n"
+ " \"writeLogFile\" : true\n"
+ " }\n"
+ "}", os.toString().replaceAll("\\r\\n", "\n"));
}

Expand Down Expand Up @@ -94,7 +97,10 @@ void testSetSpin1LibraryPath() throws Exception {
+ " \"type\" : 0,\n"
+ " \"baudRate\" : 115200\n"
+ " },\n"
+ " \"console\" : { }\n"
+ " \"console\" : {\n"
+ " \"maxLines\" : 500,\n"
+ " \"writeLogFile\" : true\n"
+ " }\n"
+ "}", os.toString().replaceAll("\\r\\n", "\n"));
}

Expand Down Expand Up @@ -164,7 +170,10 @@ void testSetSpin1DefaultLibraryPath() throws Exception {
+ " \"type\" : 0,\n"
+ " \"baudRate\" : 115200\n"
+ " },\n"
+ " \"console\" : { }\n"
+ " \"console\" : {\n"
+ " \"maxLines\" : 500,\n"
+ " \"writeLogFile\" : true\n"
+ " }\n"
+ "}", os.toString().replaceAll("\\r\\n", "\n"));
}

Expand Down Expand Up @@ -201,7 +210,10 @@ void testSetSpin1LibraryWithDefaultPath() throws Exception {
+ " \"type\" : 0,\n"
+ " \"baudRate\" : 115200\n"
+ " },\n"
+ " \"console\" : { }\n"
+ " \"console\" : {\n"
+ " \"maxLines\" : 500,\n"
+ " \"writeLogFile\" : true\n"
+ " }\n"
+ "}", os.toString().replaceAll("\\r\\n", "\n"));
}

Expand Down Expand Up @@ -237,7 +249,10 @@ void testSetSpin2LibraryPath() throws Exception {
+ " \"type\" : 0,\n"
+ " \"baudRate\" : 115200\n"
+ " },\n"
+ " \"console\" : { }\n"
+ " \"console\" : {\n"
+ " \"maxLines\" : 500,\n"
+ " \"writeLogFile\" : true\n"
+ " }\n"
+ "}", os.toString().replaceAll("\\r\\n", "\n"));
}

Expand Down Expand Up @@ -270,7 +285,10 @@ void testSetSpin2DefaultLibraryPath() throws Exception {
+ " \"type\" : 0,\n"
+ " \"baudRate\" : 115200\n"
+ " },\n"
+ " \"console\" : { }\n"
+ " \"console\" : {\n"
+ " \"maxLines\" : 500,\n"
+ " \"writeLogFile\" : true\n"
+ " }\n"
+ "}", os.toString().replaceAll("\\r\\n", "\n"));
}

Expand Down Expand Up @@ -307,7 +325,10 @@ void testSetSpin2LibraryWithDefaultPath() throws Exception {
+ " \"type\" : 0,\n"
+ " \"baudRate\" : 115200\n"
+ " },\n"
+ " \"console\" : { }\n"
+ " \"console\" : {\n"
+ " \"maxLines\" : 500,\n"
+ " \"writeLogFile\" : true\n"
+ " }\n"
+ "}", os.toString().replaceAll("\\r\\n", "\n"));
}

Expand Down Expand Up @@ -388,7 +409,10 @@ void testSetTabStops() throws Exception {
+ " \"type\" : 0,\n"
+ " \"baudRate\" : 115200\n"
+ " },\n"
+ " \"console\" : { }\n"
+ " \"console\" : {\n"
+ " \"maxLines\" : 500,\n"
+ " \"writeLogFile\" : true\n"
+ " }\n"
+ "}", os.toString().replaceAll("\\r\\n", "\n"));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@ public ConsolePreferences() {
}

public String font;
int maxLines;
boolean writeLogFile;
public int maxLines;
public boolean writeLogFile;

}

Expand Down

0 comments on commit e49da4b

Please sign in to comment.