[0], function() {
            runAfterOpen(dialogs[1], function() {
              // Click should be handled only by dialogs[1].
              MockInteractions.tap(document.body);
              // Each modal dialog will trap the focus within its children.
              // Multiple modal dialogs doing it might result in an infinite loop
              // dialog1 focus -> dialog2 focus -> dialog1 focus -> dialog2 focus...
              // causing a "Maximum call stack size exceeded" error.
              // Wai