| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <!-- This file tests JavaScript error messages of some of the | 2 <!-- This file tests JavaScript error messages of some of the |
| 3 failure cases from http/tests/serviceworker/registration.html. It | 3 failure cases from http/tests/serviceworker/registration.html. It |
| 4 should not be upstreamed to web platform tests since error messages | 4 should not be upstreamed to web platform tests since error messages |
| 5 are not defined by the specification. --> | 5 are not defined by the specification. --> |
| 6 <title>Service Worker: Error messages for register()</title> | 6 <title>Service Worker: Error messages for register()</title> |
| 7 <script src="../../resources/testharness.js"></script> | 7 <script src="../../resources/testharness.js"></script> |
| 8 <script src="../../resources/testharnessreport.js"></script> | 8 <script src="../../resources/testharnessreport.js"></script> |
| 9 <script> | 9 <script> |
| 10 | 10 |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 var message = 'Failed to register a ServiceWorker: The provided scope ' + | 150 var message = 'Failed to register a ServiceWorker: The provided scope ' + |
| 151 '(\'http://127.0.0.1:8000/serviceworker/resources/scope/' + | 151 '(\'http://127.0.0.1:8000/serviceworker/resources/scope/' + |
| 152 'encoded-slash-in-script-url\') or scriptURL ' + | 152 'encoded-slash-in-script-url\') or scriptURL ' + |
| 153 '(\'http://127.0.0.1:8000/serviceworker/' + | 153 '(\'http://127.0.0.1:8000/serviceworker/' + |
| 154 'resources%2fempty-worker.js\') ' + | 154 'resources%2fempty-worker.js\') ' + |
| 155 'includes a disallowed escape character.'; | 155 'includes a disallowed escape character.'; |
| 156 return assert_register_fails(script, scope, message); | 156 return assert_register_fails(script, scope, message); |
| 157 }, 'Script URL including URL-encoded slash'); | 157 }, 'Script URL including URL-encoded slash'); |
| 158 | 158 |
| 159 </script> | 159 </script> |
| OLD | NEW |