Change test from visibility to caption mode.

When adding the first character to a buffer, set start time based on the
current caption mode instead of the buffer's visibility.

As requested by Carlos.