Tests that FileUploader will load in a dialog box. Its detecting that an ancestor is a dialog and if so makes it display="block" while it gets measurements, then changes it back. It then connects to the dialog's onShow and is built at that time.