lay-opened', onSecondOpen);
            dialog.open();
          }

          function onSecondOpen() {
            MockInteractions.tap(document.body);
            setTimeout(function() {
              assert.equal(document.activeElement, Polymer.dom(dialog).querySelector('[autofocus]'), 'document.activeElement is the autofocused button');
              done();
            }, 10);
          }
        });

      });

      suite('a11y', function() {

        test('dialog has role="dialog"', function() {
   