Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/fast/workers/resources/error-script.js |
| diff --git a/third_party/WebKit/LayoutTests/fast/workers/resources/error-script.js b/third_party/WebKit/LayoutTests/fast/workers/resources/error-script.js |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..508e23949a4f1121e0df2f1b9f7cd146e6027b86 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/fast/workers/resources/error-script.js |
| @@ -0,0 +1,5 @@ |
| +addEventListener("error", function(e) { |
| + postMessage({ source: "event listener", value: e.error }); |
|
nhiroki
2017/04/05 07:38:38
I'm not sure what we want to check by "source". Is
yiyix
2017/04/05 09:02:55
I thought it is like a bonus to test the event sou
|
| +}); |
| + |
| +throw "testError"; |