Skip to content

Commit

Permalink
Exclude SD polyfill tests for Edge due to lack of workarounds for Edg…
Browse files Browse the repository at this point in the history
…e DocFrag bugs.
  • Loading branch information
kevinpschaaf committed Feb 23, 2017
1 parent 5d026bd commit de45ba0
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 74 deletions.
12 changes: 7 additions & 5 deletions test/runner.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
'unit/styling-cross-scope-apply.html?lazyRegister=true&useNativeCSSProperties=true',
'unit/styling-cross-scope-apply.html?dom=shadow',
'unit/styling-cross-scope-apply.html?dom=shadow&lazyRegister=true&useNativeCSSProperties=true',
'unit/styling-cross-scope-unknown-host.html',
'unit/styling-cross-scope-unknown-host-shadow.html',
'unit/style-cache.html',
'unit/custom-style.html',
'unit/custom-style-scope-cache.html',
Expand Down Expand Up @@ -97,13 +97,15 @@
'unit/element-disable-upgrade.html'
];

if (document.body.createShadowRoot) {
var idx = suites.indexOf('unit/polymer-dom-shadow.html');
suites.splice(idx, 0, 'unit/polymer-dom-native-shadow.html');
}
if (window.customElements || document.registerElement) {
suites.push('unit/attach-detach-timing.html');
}
if (/edge/i.test(navigator.userAgent)) {
// Skip testing on ShadowDOM Polyfill on Edge; it lacks workarounds for
// Edge DocumentFragment bugs
suites = suites.filter(function(s) { return s.indexOf('-shadow.html') < 0; });
}

WCT.loadSuites(suites);
</script>
</body>
Expand Down
2 changes: 1 addition & 1 deletion test/unit/dom-bind-yield.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<head>
<meta charset="utf-8">
<script src="../../../web-component-tester/browser.js"></script>
<script src="../../../webcomponentsjs/webcomponents.js"></script>
<script src="../../../webcomponentsjs/webcomponents-lite.js"></script>
</head>
<body>

Expand Down
2 changes: 1 addition & 1 deletion test/unit/gestures.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<head>
<meta charset="utf-8">

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

<link rel="import" href="../../polymer.html">
Expand Down
67 changes: 0 additions & 67 deletions test/unit/polymer-dom-native-shadow.html

This file was deleted.

0 comments on commit de45ba0

Please sign in to comment.