Bug 987351 - Migrate caldav_test.js to use new "view" code.

Migrate caldav_test.js to use new "view" code.
http://bugzil.la/987351