Opened 2 months ago

Last modified 2 months ago

#7392 new change

Write test for the case when a subscription download is terminated midway

Reported by: mjethani Assignee:
Priority: Unknown Milestone:
Module: Core Keywords:
Cc: hfiguiere, jsonesen, kzar Blocked By: #7381
Blocking: Platform: Unknown / Cross platform
Ready: no Confidential: no
Tester: Unknown Verified working: no
Review URL(s):



With #7381 we are moving to the Fetch API. In Fetch, the text of the response is returned via a text() method that returns a promise that resolves with the response text. If the download is terminated midway, the promise will be rejected.

But our tests are written for XMLHttpRequest semantics (see registerHandler and its usage). We need to bring in promises here and update all the tests accordingly.

What to change

To be determined.

Change History (3)

comment:1 Changed 2 months ago by mjethani

  • Cc hfiguiere jsonesen kzar added

comment:2 Changed 2 months ago by kzar

  • Blocked By 7381 added

comment:3 Changed 2 months ago by mjethani

We also need to add a test for when the subscription URL is invalid

Note: See TracTickets for help on using tickets.