Update web-platform-tests to revision 8f8ff0e2a61f2a24996404921fe853cb1fd9b432

This commit is contained in:
WPT Sync Bot 2018-09-17 21:32:16 -04:00
parent e98cd07910
commit 141a52794b
58 changed files with 1615 additions and 276 deletions

View file

@ -43,6 +43,7 @@ backgroundFetchTest(async (test, backgroundFetch) => {
assert_equals(registration.downloadTotal, 1234);
assert_equals(registration.result, '');
assert_equals(registration.failureReason, '');
assert_true(registration.recordsAvailable);
// Skip `downloaded`, as the transfer may have started already.
const secondRegistration = await backgroundFetch.get(registrationId);
@ -52,6 +53,8 @@ backgroundFetchTest(async (test, backgroundFetch) => {
assert_equals(secondRegistration.uploadTotal, registration.uploadTotal);
assert_equals(secondRegistration.uploaded, registration.uploaded);
assert_equals(secondRegistration.downloadTotal, registration.downloadTotal);
assert_equals(secondRegistration.failureReason, registration.failureReason);
assert_equals(secondRegistration.recordsAvailable, registration.recordsAvailable);
// While the transfer might have started, both BackgroundFetchRegistration
// objects should have the latest progress values.