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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/workers/postMessage_event_properties.htm

Issue 2418853003: Worker: Import "imported/wpt/workers" tests (Retry) (Closed)
Patch Set: rebase Created 4 years, 2 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 <title> postMessage(): MessageEvent properties </title>
3 <script src="/resources/testharness.js"></script>
4 <script src="/resources/testharnessreport.js"></script>
5 <div id=log></div>
6 <script>
7 async_test(function(t) {
8 var channel = new MessageChannel();
9 var targetPort = channel.port2;
10 targetPort.start();
11 targetPort.addEventListener("message", t.step_func_done(function (evt) {
12 assert_class_string(evt, "MessageEvent");
13 assert_equals(evt.type, "message");
14 assert_false(evt.bubbles, "bubbles should be false");
15 assert_false(evt.cancelable, "cancelable should be false");
16 assert_equals(evt.data, "ping", "data");
17 assert_equals(evt.origin, "", "origin");
18 assert_equals(evt.lastEventId, "", "lastEventId");
19 assert_equals(evt.source, null, "source");
20 assert_array_equals(evt.ports, [], "ports");
21 }), true);
22 channel.port1.postMessage("ping");
23 });
24 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698