mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Update packages
Jasmine had a major version bump and required a few minor changes in our booting code. Most notably, using `pending` in a `describe` block is no longer supported, so we can only return early there. On the positive side, the unit tests now run in a random order by default, which eliminates any dependencies between unit tests. Note that upgrading to Webpack 4 is out of scope for this patch since the bots cannot work well with the newly generated bundles (both browsers on both bots do not react within 120 seconds). Webpack 4 is not faster for us than Webpack 3, so for now there is no need to upgrade.
This commit is contained in:
parent
db6e316efd
commit
95de23e6e3
6 changed files with 61 additions and 37 deletions
|
@ -124,9 +124,9 @@ function initializePDFJS(callback) {
|
|||
},
|
||||
});
|
||||
|
||||
var catchingExceptions = queryString.getParam('catch');
|
||||
env.catchExceptions(typeof catchingExceptions === 'undefined' ?
|
||||
true : catchingExceptions);
|
||||
var stoppingOnSpecFailure = queryString.getParam('failFast');
|
||||
env.stopOnSpecFailure(typeof stoppingOnSpecFailure === 'undefined' ?
|
||||
false : stoppingOnSpecFailure);
|
||||
|
||||
var throwingExpectationFailures = queryString.getParam('throwFailures');
|
||||
env.throwOnExpectationFailure(throwingExpectationFailures);
|
||||
|
@ -142,8 +142,9 @@ function initializePDFJS(callback) {
|
|||
// Reporters
|
||||
var htmlReporter = new jasmine.HtmlReporter({
|
||||
env,
|
||||
onRaiseExceptionsClick() {
|
||||
queryString.navigateWithNewParam('catch', !env.catchingExceptions());
|
||||
onStopExecutionClick() {
|
||||
queryString.navigateWithNewParam('failFast',
|
||||
env.stoppingOnSpecFailure());
|
||||
},
|
||||
onThrowExpectationsClick() {
|
||||
queryString.navigateWithNewParam('throwFailures',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue