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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/webmessaging/without-ports/025-1.js

Issue 2558423002: Import wpt/webmessaging tests (Closed)
Patch Set: rebase again Created 3 years, 11 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 importScripts("/resources/testharness.js");
2
3 test(function() {
4 var ch = new MessageChannel();
5 assert_true(ch.port1 instanceof MessagePort,
6 "Worker MessageChannel's port not an instance of MessagePort");
7 }, "Worker MessageChannel's port should be an instance of MessagePort");
8
9 test(function() {
10 assert_throws(new TypeError(), function() {
11 new MessagePort()
12 }, "MessagePort is [[Callable]]");
13 }, "Worker MessagePort should not be [[Callable]]");
14
15 done();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698