Merge pull request #5621 from Polymer/update-travis

modernize travis
This commit is contained in:
Steve Orvell
2020-01-21 18:05:30 -08:00
committed by GitHub
4 changed files with 5010 additions and 2345 deletions
+7 -5
View File
@@ -1,19 +1,21 @@
language: node_js
sudo: false
dist: trusty
node_js: '9'
dist: xenial
node_js: '10'
services:
- xvfb
addons:
firefox: "66.0"
firefox: latest
chrome: stable
cache:
directories:
- node_modules
- node_modules
before_script:
- npm install -g gulp-cli@1
- gulp lint-eslint
script:
- node ./node_modules/.bin/polymer test --npm --module-resolution=node -l chrome
- xvfb-run node ./node_modules/.bin/polymer test --npm --module-resolution=node -l firefox
- node ./node_modules/.bin/polymer test --npm --module-resolution=node -l firefox
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then travis_wait 30 ./util/travis-sauce-test.sh; fi
env:
global:
+4994 -2333
View File
File diff suppressed because it is too large Load Diff
+3 -1
View File
@@ -71,7 +71,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
'unit/dom-bind.html',
'unit/array-selector.html',
'unit/polymer-dom.html',
'unit/polymer-dom-nopatch.html',
// Forced to `noPatch` here to workaround
// https://github.com/webcomponents/polyfills/issues/250.
'unit/polymer-dom-nopatch.html?wc-noPatch=true',
'unit/polymer-dom-observeNodes.html',
'unit/flattened-nodes-observer.html',
// TODO: substitute for equivalent es6 import tests
+6 -6
View File
@@ -381,9 +381,9 @@ suite('Mutate light DOM', function() {
child.shadowRoot.innerHTML = '<slot></slot><span id="sub"></span>';
var childLocalSub = child.shadowRoot.lastChild;
ShadyDOM.flush();
assert.deepEqual(host.root.querySelectorAll('span#main'), [hostLocalMain]);
assert.deepEqual(host.root.querySelectorAll('div#sub'), [childLightSub]);
assert.deepEqual(child.root.querySelectorAll('span#sub'), [childLocalSub]);
assert.deepEqual(Array.from(host.root.querySelectorAll('span#main')), [hostLocalMain]);
assert.deepEqual(Array.from(host.root.querySelectorAll('div#sub')), [childLightSub]);
assert.deepEqual(Array.from(child.root.querySelectorAll('span#sub')), [childLocalSub]);
});
test('querySelectorAll (light dom)', function() {
@@ -396,9 +396,9 @@ suite('Mutate light DOM', function() {
var childLightSub = getComposedChildAtIndex(child, 100) ;
child.shadowRoot.innerHTML = '<slot></slot><span id="sub"></span>';
ShadyDOM.flush();
assert.deepEqual(host.querySelectorAll('div#main'), [hostLightMain]);
assert.deepEqual(host.querySelectorAll('#sub'), []);
assert.deepEqual(child.querySelectorAll('div#sub'), [childLightSub]);
assert.deepEqual(Array.from(host.querySelectorAll('div#main')), [hostLightMain]);
assert.deepEqual(Array.from(host.querySelectorAll('#sub')), []);
assert.deepEqual(Array.from(child.querySelectorAll('div#sub')), [childLightSub]);
});
});