Add Browserstack for IE11 testing (#6557)

* add browserstack

* check for data before removing root token

* fix root prefix and select by attributes for ie11

* use objectAt for ie11

* use blobs instead of files for ie11

* manually round cirucmference for ie11

* skip csp test on ie11

* skip tests in ie11

* include polyfill for CI

* remove on exit hooks

* update which browserstack tests are run

* remove ie check since we are not running these tests in ie

* remove ie check since we are not running these tests in ie
This commit is contained in:
Noelle Daley
2019-05-03 15:20:14 -07:00
committed by GitHub
parent 059c0c4c35
commit e9b5056a1b
19 changed files with 399 additions and 46 deletions

View File

@@ -19,7 +19,9 @@ module('Integration | Component | radial progress', function(hooks) {
});
test('it renders', async function(assert) {
let circumference = (19 / 2) * Math.PI * 2;
// We have to manually round the circumference, strokeDash, and strokeDashOffset because
// ie11 truncates decimals differently than other browsers.
let circumference = ((19 / 2) * Math.PI * 2).toFixed(2);
await render(hbs`{{radial-progress progressDecimal=0.5}}`);
assert.equal(component.viewBox, '0 0 20 20');
@@ -29,7 +31,7 @@ module('Integration | Component | radial progress', function(hooks) {
assert.equal(component.r, 19 / 2);
assert.equal(component.cx, 10);
assert.equal(component.cy, 10);
assert.equal(component.strokeDash, circumference);
assert.equal(component.strokeDashOffset, circumference * 0.5);
assert.equal(Number(component.strokeDash).toFixed(2), circumference);
assert.equal(Number(component.strokeDashOffset).toFixed(3), (circumference * 0.5).toFixed(3));
});
});