Skip to content

Commit d16e983

Browse files
authored
Merge pull request #18 from Hackception/sauce-config
Added WCT Sauce browser configuration
2 parents 40bdbb2 + da4a517 commit d16e983

9 files changed

+71
-8
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
language: node_js
22
sudo: required
3+
git:
4+
depth: 3
35
before_script:
46
- npm install -g bower polylint web-component-tester
57
- bower install
@@ -18,5 +20,5 @@ addons:
1820
- google-chrome-stable
1921
script:
2022
- xvfb-run wct
21-
- 'if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then wct -s ''default''; fi'
23+
- 'if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then wct --plugin sauce; fi'
2224
dist: trusty

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ An optimized tree-view based on a flat data structure.
44

55
## Browser Support
66

7-
[![Build Status](https://saucelabs.com/browser-matrix/stramel.svg)](https://saucelabs.com/beta/builds/556b2791a7da4a9397951969625607be)
7+
[![Sauce Test Status](https://saucelabs.com/browser-matrix/stramel.svg)](https://saucelabs.com/u/stramel)
88

99
## Install the Polymer-CLI
1010

demo/hc-nested-list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ <h3><code>hc-nested-list demo</code></h3>
6262
items: {
6363
type: Array,
6464
// This function is provided as part of test/utils.html, used for testing
65-
value: () => window.buildItems(100, 100, 100)
65+
value: () => buildItems(100, 100, 100)
6666
}
6767
}
6868
});

demo/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ <h3>Basic hc-tree-view demo</h3>
4242
items: {
4343
type: Array,
4444
// This function is provided as part of test/utils.html, used for testing
45-
value: () => window.buildItems(10, 10, 10, 10)
45+
value: () => buildItems(10, 10, 10, 10)
4646
},
4747
selectedItems: Array
4848
},

test/hc-nested-list_test.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
beforeEach(() => {
3636
// Triggers a clean build of items and parts every time.
3737
parts = {};
38-
items = window.buildItems(count, count, count, 0, parts);
38+
items = buildItems(count, count, count, 0, parts);
3939

4040
replace('iron-list').with('fake-list');
4141
element = fixture('basic');

test/hc-tree-view_test.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
let element, items = [], parts = {}, setSpy;
2626

2727
beforeEach(() => {
28-
items = window.buildItems(count, count, count, 0, parts);
28+
items = buildItems(count, count, count, 0, parts);
2929
element = fixture('basic');
3030
setSpy = sinon.spy(element, 'set');
3131
});

test/perf/hc-nested-list_perf.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
let parts = {}, items = [];
3232

3333
function runTests(pSize, cSize, gcSize, modifier = 1) {
34-
beforeEach(() => items = window.buildItems(pSize, cSize, gcSize, 0, parts));
34+
beforeEach(() => items = buildItems(pSize, cSize, gcSize, 0, parts));
3535

3636
//_computeItems
3737
it('should build _items from parts in <1 frame with no parents open', () =>

test/perf/hc-tree-view_perf.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
let parts = {}, items = [];
2525

2626
function runTests(pSize, cSize, gcSize, modifier = 1) {
27-
beforeEach(() => items = window.buildItems(pSize, cSize, gcSize, 0, parts));
27+
beforeEach(() => items = buildItems(pSize, cSize, gcSize, 0, parts));
2828

2929
// deselectItems
3030
it('should deselect an item in <1ms', () =>

wct.conf.json

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{
2+
"plugins": {
3+
"sauce": {
4+
"disabled": true,
5+
"browsers": [{
6+
"browserName": "microsoftedge",
7+
"platform": "Windows 10",
8+
"version": "latest"
9+
}, {
10+
"browserName": "internet explorer",
11+
"platform": "Windows 10",
12+
"version": "11"
13+
}, {
14+
"browserName": "internet explorer",
15+
"platform": "Windows 7",
16+
"version": "11"
17+
}, {
18+
"browserName": "firefox",
19+
"platform": "Windows 10",
20+
"version": "latest"
21+
}, {
22+
"browserName": "firefox",
23+
"platform": "Windows 7",
24+
"version": "latest"
25+
}, {
26+
"browserName": "chrome",
27+
"platform": "Windows 10",
28+
"version": "latest"
29+
}, {
30+
"browserName": "chrome",
31+
"platform": "Windows 10",
32+
"version": "latest-1"
33+
}, {
34+
"browserName": "chrome",
35+
"platform": "Windows 10",
36+
"version": "latest-2"
37+
}, {
38+
"browserName": "chrome",
39+
"platform": "Windows 7",
40+
"version": "latest"
41+
}, {
42+
"browserName": "safari",
43+
"platform": "OS X 10.12",
44+
"version": "10"
45+
}, {
46+
"browserName": "safari",
47+
"platform": "OS X 10.11",
48+
"version": "9"
49+
}, {
50+
"browserName": "safari",
51+
"platform": "OS X 10.10",
52+
"version": "8"
53+
}, {
54+
"browserName": "safari",
55+
"platform": "OS X 10.9",
56+
"version": "7"
57+
}
58+
]
59+
}
60+
}
61+
}

0 commit comments

Comments
 (0)