Includes a test case for bug 546005 to start with, logic provided by Paul Pogonyshev and Bjorn Lindqvist. In the future, we should maybe merge treeview-scrolling.c with this one to create one large monolithic tree view tester.