Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/workers/dedicated-worker-error-event.html

Issue 2804533002: Update Error Event inside a worker to provide the exact exception value (Closed)
Patch Set: fix nits Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!doctype html>
2 <meta charset=utf-8>
3 <title>Dedicated Worker: Error event error message</title>
4 <script src=../../resources/testharness.js></script>
5 <script src=../../resources/testharnessreport.js></script>
6 <script>
7 promise_test(function(t) {
nhiroki 2017/04/06 01:50:35 Can you add a comment like this? // TODO(yiyix):
yiyix 2017/04/06 04:38:19 Done.
8 return new Promise(function(resolve) {
nhiroki 2017/04/06 01:50:35 Optional: Arrow function would be simpler: return
yiyix 2017/04/06 04:38:19 Done.
9 var worker = new Worker('resources/error-script.js');
10 worker.onmessage = resolve;
11 })
nhiroki 2017/04/06 01:50:35 +2 indents for line 8-11 return new Promise(r
yiyix 2017/04/06 04:38:19 Done.
12 .then(function(e) {
13 assert_equals(e.data.value, 'testError');
14 });
15 }, 'Error handlers inside a worker should see the error value');
16 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698