| Index: third_party/WebKit/LayoutTests/fast/workers/resources/onerror-test.js
|
| diff --git a/third_party/WebKit/LayoutTests/fast/workers/resources/onerror-test.js b/third_party/WebKit/LayoutTests/fast/workers/resources/onerror-test.js
|
| index 66e981ffa087ec1ccbf084ea5cdf3d88d1b74d34..79dadbe894bcd630f329bd70aaf62ecdf4325c0d 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/workers/resources/onerror-test.js
|
| +++ b/third_party/WebKit/LayoutTests/fast/workers/resources/onerror-test.js
|
| @@ -69,6 +69,13 @@ function errorEventHandlerShouldNotFire() {
|
| };
|
| }
|
|
|
| +function errorEventHandlerShouldFire() {
|
| + var worker = buildInlineWorker();
|
| + worker.onerror = function (e) {
|
| + testPassed("'worker.onerror' called.");
|
| + };
|
| +}
|
| +
|
| function buildInlineWorker() {
|
| var script = document.getElementById('workerCode').innerText;
|
| var blob = new Blob([script], {type: 'text/javascript'});
|
|
|