| Index: LayoutTests/http/tests/serviceworker/registration.html
|
| diff --git a/LayoutTests/http/tests/serviceworker/registration.html b/LayoutTests/http/tests/serviceworker/registration.html
|
| index 512edfbb008cb4dee148dc887c8101a721ff06cb..63ccc1ddd3aae8574fd86b1dd1a7c4258aea22d6 100644
|
| --- a/LayoutTests/http/tests/serviceworker/registration.html
|
| +++ b/LayoutTests/http/tests/serviceworker/registration.html
|
| @@ -79,4 +79,22 @@
|
| });
|
| }());
|
|
|
| +(function() {
|
| + var t = async_test('Registering script without correct MIME type');
|
| + t.step(function() {
|
| + navigator.serviceWorker.register(
|
| + 'resources/plain-text-worker.php'
|
| + ).then(
|
| + t.step_func(function(registration) {
|
| + assert_unreached('Registration of plain text script should fail.');
|
| + }),
|
| + t.step_func(function(reason) {
|
| + assert_equals(reason.name, 'AbortError',
|
| + 'Registration of plain text script should fail.');
|
| + t.done();
|
| + })
|
| + );
|
| + });
|
| +}());
|
| +
|
| </script>
|
|
|