mirror of
https://github.com/Polymer/polymer.git
synced 2026-08-17 16:34:49 -05:00
+7
-5
@@ -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:
|
||||
|
||||
Generated
+4994
-2333
File diff suppressed because it is too large
Load Diff
+3
-1
@@ -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
|
||||
|
||||
@@ -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]);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user