Skip to content

Commit de45ba0

Browse files
committed
Exclude SD polyfill tests for Edge due to lack of workarounds for Edge DocFrag bugs.
1 parent 5d026bd commit de45ba0

5 files changed

Lines changed: 9 additions & 74 deletions

File tree

test/runner.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
'unit/styling-cross-scope-apply.html?lazyRegister=true&useNativeCSSProperties=true',
7070
'unit/styling-cross-scope-apply.html?dom=shadow',
7171
'unit/styling-cross-scope-apply.html?dom=shadow&lazyRegister=true&useNativeCSSProperties=true',
72-
'unit/styling-cross-scope-unknown-host.html',
72+
'unit/styling-cross-scope-unknown-host-shadow.html',
7373
'unit/style-cache.html',
7474
'unit/custom-style.html',
7575
'unit/custom-style-scope-cache.html',
@@ -97,13 +97,15 @@
9797
'unit/element-disable-upgrade.html'
9898
];
9999

100-
if (document.body.createShadowRoot) {
101-
var idx = suites.indexOf('unit/polymer-dom-shadow.html');
102-
suites.splice(idx, 0, 'unit/polymer-dom-native-shadow.html');
103-
}
104100
if (window.customElements || document.registerElement) {
105101
suites.push('unit/attach-detach-timing.html');
106102
}
103+
if (/edge/i.test(navigator.userAgent)) {
104+
// Skip testing on ShadowDOM Polyfill on Edge; it lacks workarounds for
105+
// Edge DocumentFragment bugs
106+
suites = suites.filter(function(s) { return s.indexOf('-shadow.html') < 0; });
107+
}
108+
107109
WCT.loadSuites(suites);
108110
</script>
109111
</body>

test/unit/dom-bind-yield.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<head>
1313
<meta charset="utf-8">
1414
<script src="../../../web-component-tester/browser.js"></script>
15-
<script src="../../../webcomponentsjs/webcomponents.js"></script>
15+
<script src="../../../webcomponentsjs/webcomponents-lite.js"></script>
1616
</head>
1717
<body>
1818

test/unit/gestures.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<head>
1313
<meta charset="utf-8">
1414

15-
<script src="../../../webcomponentsjs/webcomponents.js"></script>
15+
<script src="../../../webcomponentsjs/webcomponents-lite.js"></script>
1616
<script src="../../../web-component-tester/browser.js"></script>
1717

1818
<link rel="import" href="../../polymer.html">

test/unit/polymer-dom-native-shadow.html

Lines changed: 0 additions & 67 deletions
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)