| Index: LayoutTests/http/tests/serviceworker/resources/test-helpers.js
|
| diff --git a/LayoutTests/http/tests/serviceworker/resources/test-helpers.js b/LayoutTests/http/tests/serviceworker/resources/test-helpers.js
|
| index 809befdd5c873b0a27a65140e6dcec5dc313bae5..147ea612c2f99b41375b643160da49598cc6603c 100644
|
| --- a/LayoutTests/http/tests/serviceworker/resources/test-helpers.js
|
| +++ b/LayoutTests/http/tests/serviceworker/resources/test-helpers.js
|
| @@ -27,6 +27,13 @@ function service_worker_unregister_and_done(test, scope) {
|
| .then(test.done.bind(test));
|
| }
|
|
|
| +function unreached_fulfillment(test, prefix) {
|
| + return test.step_func(function(result) {
|
| + var error_prefix = prefix || 'unexpected fulfillment';
|
| + assert_unreached(error_prefix + ': ' + result);
|
| + });
|
| +}
|
| +
|
| // Rejection-specific helper that provides more details
|
| function unreached_rejection(test, prefix) {
|
| return test.step_func(function(error) {
|
|
|