og1 focus -> dialog2 focus...
              // causing a "Maximum call stack size exceeded" error.
              // Wait 50ms and verify this does not happen.
              Polymer.Base.async(function() {
                // Should not enter in an infinite loop.
                done();
              }, 50);
            });
          });
        });

        test('multiple modal dialogs opened, handle outside click', function(done) {
          var dialogs = fixture('multiple');

          runAfterOpen(dialogs