t 50ms and verify this does not happen.
              Polymer.Base.async(function() {
                // Should not enter in an infinite loop.
                done();
              }, 50);
            });
          });
        });

        test('focus is given to the autofocus element when clicking on backdrop', function(done) {
          var dialog = fixture('modal');
          dialog.addEventListener('iron-overlay-opened', onFirstOpen);
          dialog.open();

          function onFirstOpen() {
        