From b21052eefafcaf263404ff34e5b340eca34d00a5 Mon Sep 17 00:00:00 2001 From: valdrinkoshi Date: Fri, 21 Apr 2017 14:41:07 -0700 Subject: [PATCH] fix tests --- test/iron-overlay.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/iron-overlay.html b/test/iron-overlay.html index 2eafa20..fa94af1 100644 --- a/test/iron-overlay.html +++ b/test/iron-overlay.html @@ -437,7 +437,8 @@ test('node with autofocus is focused', function(done) { runAfterOpen(overlay, function() { - assert.isTrue(overlay.contentHost.contains(getDeepActiveElement()), + const autofocused = overlay.contentHost.querySelector('[autofocus]'); + assert.equal(getDeepActiveElement(), autofocused, '