Skip to content

Commit

Permalink
update expectation test for Firefox Quantum
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisguttandin committed Jan 26, 2018
1 parent bc7188e commit 9dc0449
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config/karma/config-expectation.js
Expand Up @@ -94,7 +94,7 @@ module.exports = (config) => {
'ChromeHeadless',
'ChromeCanaryHeadless',
'FirefoxHeadless',
// 'FirefoxDeveloperHeadless',
'FirefoxDeveloperHeadless',
'Safari'
]

Expand Down
12 changes: 9 additions & 3 deletions test/expectation/any/array-buffer.js
Expand Up @@ -23,14 +23,20 @@ describe('ArrayBuffer', () => {
let lastNow = performance.now();
let currentNow = performance.now();

expect(currentNow - lastNow).to.be.below(50);
expect(currentNow - lastNow).to.be.below(10);

lastNow = performance.now();

new ArrayBuffer(length);

lastNow = currentNow;
currentNow = performance.now();

expect(currentNow - lastNow).to.be.above(50);
expect(currentNow - lastNow).to.be.above(10);

lastNow = performance.now();
currentNow = performance.now();

expect(currentNow - lastNow).to.be.below(10);
});

});
Expand Down

0 comments on commit 9dc0449

Please sign in to comment.