Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Commit

Permalink
fix transform of test file, only test unscoped dom in shady builds
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed Nov 5, 2018
1 parent 36e81ba commit a595d24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
const div = Polymer.dom(root).querySelector('div');
assertComputed(div, '10px');
assertComputed(div, 'rgb(255, 0, 255)', 'background-color');
if ((Polymer.Settings && !Polymer.Settings.useShadow) || (window.ShadyCSS && !window.ShadyCSS.nativeShadow)) {
if (buildType === 'shady') {
const testEl = document.createElement('div');
testEl.setAttribute('unscoped', '');
testEl.classList.add('included');
Expand Down
2 changes: 1 addition & 1 deletion tests/prepare-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ build(){

cp -rv tests/app/* "tests/${outputDir}/"

bin/polymer-css-build --polymer-version=${version} ${shady} ${noInline} --file tests/${outputDir}/index.html tests/${outputDir}/x-app.html tests/${outputDir}/x-app-dom-module.html tests/${outputDir}/x-app-definition.js tests/${outputDir}/x-component.html tests/${outputDir}/shared/shared-style.html tests/${outputDir}/x-nested-apply.html tests/${outputDir}/cr-bug.html tests/${outputDir}/class-element.js tests/${outputDir}/polymer-1-vars.html
bin/polymer-css-build --polymer-version=${version} ${shady} ${noInline} --file tests/${outputDir}/index.html tests/${outputDir}/x-app.html tests/${outputDir}/x-app-dom-module.html tests/${outputDir}/x-app-definition.js tests/${outputDir}/x-component.html tests/${outputDir}/shared/shared-style.html tests/${outputDir}/x-nested-apply.html tests/${outputDir}/cr-bug.html tests/${outputDir}/class-element.js tests/${outputDir}/polymer-1-vars.html tests/${outputDir}/shady-unscoped.html

(cd tests/${outputDir}; npx bower install polymer#${version} web-component-tester)
}
Expand Down

0 comments on commit a595d24

Please sign in to comment.