Skip to content
This repository was archived by the owner on Sep 20, 2019. It is now read-only.

Commit 3efad39

Browse files
committed
Use WCT 4
Fix travis for building on modern node Fix Template HTMLImports loading dependence in wct 4
1 parent 698e8e4 commit 3efad39

5 files changed

Lines changed: 16 additions & 6 deletions

File tree

.travis.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
language: node_js
22
sudo: false
3-
node_js: 4
3+
node_js: stable
44
addons:
55
firefox: latest
66
apt:
77
sources:
88
- google-chrome
9+
- ubuntu-toolchain-r-test
910
packages:
1011
- google-chrome-stable
11-
before_script:
12-
- export PATH=$PWD/node_modules/.bin:$PATH
12+
- g++-4.8
1313
script:
1414
- xvfb-run wct
1515
- "if [ \"${TRAVIS_PULL_REQUEST}\" = \"false\" ]; then wct -s 'default'; fi"
1616
env:
1717
global:
1818
- secure: c0kVrjNDtqd06Gyg4Xi3iopr0KCz1k0LbZeL+TCbnyCdmAE7m9FcJASWvM2Zr7d774hTiMSi0Z79SlV6XZhLN2pi4EsbdEpsnVeAXXH/GYzDKgpXbdfD/nQv4n1nMXL6XSaZkAX7WwgmrjzJ9cXQJYV9vNHIBRcGoVRRyCFx9v4=
1919
- secure: Mo+AVRGUmlDENnZ2GioF5pU62WhyLUMnPlSqzeodZzJoAnwcNr9VnHiRCgQBLnHCZwjbMv6C0vhWopY7lN9w77vlS5vr8MDZKjYT/YRl9jk0+hStJ+diSS9MD+FnNNerXe+V+WA6NYVHno3vdWRqDDMYzCdH/pyLukkuKdMFaAU=
20+
- CXX=g++-4.8

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
"license": "BSD",
1717
"ignore": [],
1818
"devDependencies": {
19-
"web-component-tester": "3.4"
19+
"web-component-tester": "^4.0.1"
2020
}
2121
}

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
"bugs": {
1616
"url": "https://github.com/webcomponents/webcomponentsjs/issues"
1717
},
18+
"scripts": {
19+
"test": "wct"
20+
},
1821
"homepage": "http://webcomponents.org",
1922
"devDependencies": {
2023
"gulp": "^3.8.8",
@@ -23,6 +26,6 @@
2326
"gulp-header": "^1.1.1",
2427
"gulp-uglify": "^1.0.1",
2528
"run-sequence": "^1.0.1",
26-
"web-component-tester": "^3"
29+
"web-component-tester": "^4.0.1"
2730
}
2831
}

tests/HTMLImports/runner.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
<!-- HTMLImports -->
1515
<script>
1616
WCT = {
17-
environmentImports: [],
1817
waitFor: function(callback) {
1918
this.HTMLImports.whenReady(callback);
2019
}

tests/Template/imports.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@
1313
<title>Template with HTMLImports Test</title>
1414
<script src="../../src/Template/Template.js"></script>
1515
<script src="../../src/HTMLImports/HTMLImports.js"></script>
16+
<script>
17+
WCT = {
18+
waitFor: function(callback) {
19+
this.HTMLImports.whenReady(callback);
20+
}
21+
};
22+
</script>
1623
<script src="../../../web-component-tester/browser.js"></script>
1724
</head>
1825
<body>

0 commit comments

Comments
 (0)