fix a bunch of failing unit tests.

The fix is to resize the editor to a specific size to make those tests pass again. Some of the test expected that the editor will always scroll and word wrap in the same way, regardless of the window/editor size. This fix will resize the editor for a few tests to make their behavior predictable.

This is for #7420