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

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: update tests 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
8 promise_test(function(t) {
9 return new Promise(function(resolve) {
10 var worker = new Worker('resources/error-script.js');
11 worker.onmessage = resolve;
12 })
13 .then(function(e) {
shimazu 2017/04/05 09:29:40 Indentation will be like this: promise_test(() =>
yiyix 2017/04/05 09:56:56 Done.
14 assert_equals(e.data.value, 'testError');
15 });
16 }, 'Error handlers inside a worker should see the error value');
17
18 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698