From fb1a7835a77887fb12c2436c721b22adbe4767a8 Mon Sep 17 00:00:00 2001 From: Steven Orvell Date: Wed, 29 Jan 2020 18:51:56 -0800 Subject: [PATCH] Skip test when custom elements polyfill is in use Cannot be supported with polyfill because it uses setAttribute. --- test/unit/legacy-noattributes.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/unit/legacy-noattributes.html b/test/unit/legacy-noattributes.html index cc60c56c2b..10072b5d7c 100644 --- a/test/unit/legacy-noattributes.html +++ b/test/unit/legacy-noattributes.html @@ -117,7 +117,10 @@ assert.ok(def); }); - test('native properties observeable when `_legacyForceObservedAttributes` set', () => { + test('native properties observeable when `_legacyForceObservedAttributes` set', function() { + if (customElements.polyfillWrapFlushCallback) { + this.skip(); + } el = document.createElement('x-native-attrs-force'); document.body.appendChild(el); el.tabIndex = 5;