Home
last modified time | relevance | path

Searched refs:postMessage (Results 1 – 25 of 176) sorted by relevance

12345678

/third_party/node/test/parallel/
Dtest-worker-message-port.js13 port1.postMessage(input);
41 port1.postMessage(2);
44 port2.postMessage(message.data * 2);
52 port1.postMessage(input);
75 port1.postMessage(input);
88 port1.postMessage(1, null);
89 port1.postMessage(2, undefined);
90 port1.postMessage(3, []);
91 port1.postMessage(4, {});
92 port1.postMessage(5, { transfer: undefined });
[all …]
Dtest-worker-broadcastchannel-wpt.js20 c1.postMessage('hello world');
79 c1.postMessage('from c1');
80 c3.postMessage('from c3');
81 c2.postMessage('done');
93 c1.postMessage('test');
104 c1.postMessage('test');
121 c1.postMessage('done');
123 c1.postMessage('first');
124 c2.postMessage('second');
152 c1.postMessage('first');
[all …]
Dtest-whatwg-webstreams-transfer.js103 port1.postMessage(data, [data]);
107 assert.throws(() => port2.postMessage(readable), {
111 port2.postMessage(readable, [readable]);
153 port1.postMessage(data, [data]);
157 assert.throws(() => port2.postMessage(readable), {
161 port2.postMessage(readable, [readable]);
204 port1.postMessage(data, [data]);
208 assert.throws(() => port2.postMessage(writable), {
212 port2.postMessage(writable, [writable]);
289 port1.postMessage(data, [data]);
[all …]
Dtest-worker-broadcastchannel.js29 assert.throws(() => bc.postMessage(), {
37 assert.throws(() => bc.postMessage(null), {
63 bc2.postMessage('hello');
87 bc2.postMessage('hello');
107 bc.postMessage(123);
116 bc3.postMessage(new SharedArrayBuffer(10));
133 assert.throws(() => bc1.postMessage(mc), {
136 assert.throws(() => bc1.postMessage(Symbol()), {
140 assert.throws(() => bc1.postMessage(Symbol()), {
148 bc1.postMessage('some data');
Dtest-inspector-workers-flat-list.js27 rootWorker.postMessage({ done: true });
41 parentPort.postMessage(message);
47 worker.postMessage({ depth });
60 worker.postMessage({ done: true });
64 parentPort.postMessage({ child: depth });
69 parentPort.postMessage({ child });
Dtest-worker-message-port-transfer-filehandle.js15 port1.postMessage(fh);
22 port1.postMessage(fh, [ fh ]);
41 port1.postMessage(fh, [ fh ]);
66 port1.postMessage(fh, [ fh ]);
69 port1.postMessage('second message');
80 port1.postMessage(fh, [fh]);
97 port1.postMessage(fh, [fh]);
Dtest-worker-onmessage.js19 w.postMessage(2);
22 parentPort.postMessage(message.data * 2);
23 parentPort.postMessage(undefined);
24 parentPort.postMessage(null);
Dtest-worker-process-cwd.js27 w.postMessage(process.cwd());
43 parentPort.postMessage(cwd);
51 w.postMessage(message);
58 parentPort.postMessage(cwd);
Dtest-crypto-key-objects-messageport.js29 parentPort.postMessage(keyToString(key));
51 port1.postMessage({ key });
66 worker.postMessage({ key });
84 port1.postMessage({ key });
Dtest-worker-message-port-move.js23 assert(port.postMessage instanceof Function);
43 port.postMessage({});
51 port.postMessage(global);
68 port2.postMessage({ p: otherChannel.port1 }, [ otherChannel.port1 ]);
Dtest-abortsignal-cloneable.js33 mc.port2.postMessage(ac.signal, [ac.signal]);
36 mc.port2.postMessage(ac.signal, [ac.signal]);
72 mc.port2.postMessage(signal, [signal]);
81 mc.port2.postMessage(ac.signal, [ac.signal]);
Dtest-worker-message-port-terminate-transfer-list.js17 parentPort.postMessage('ready');
20 port1.postMessage({}, {
25 parentPort.postMessage('UNREACHABLE');
Dtest-inspector-connect-main-thread.js90 parentPort.postMessage({ doConsoleLog: true });
154 parentPort.postMessage('Ready');
167 parentPort.postMessage({ messagesSent });
184 parentPort.postMessage('Ready');
185 parentPort.postMessage({ messagesSent });
Dtest-worker-message-transfer-port-mark-as-untransferable.js13 port1.postMessage(ab, [ ab ]);
26 channel1.port1.postMessage(channel2.port1, [ channel2.port1 ]);
29 channel2.port1.postMessage('still works, not closed/transferred');
Dtest-worker-message-port-receive-message.js14 port1.postMessage(message1);
15 port1.postMessage(message2);
23 port1.postMessage(message1);
/third_party/node/test/fixtures/wpt/webmessaging/broadcastchannel/
Dbasics.any.js14 c1.postMessage('hello world');
50 c1.postMessage('from c1');
51 c3.postMessage('from c3');
52 c2.postMessage('done');
63 c1.postMessage('test');
73 c1.postMessage('test');
89 c1.postMessage('done');
91 c1.postMessage('first');
92 c2.postMessage('second');
118 c1.postMessage('first');
[all …]
Dinterface.any.js26 assert_throws_js(TypeError, () => c.postMessage());
31 c.postMessage(null);
48 assert_throws_dom('InvalidStateError', () => c.postMessage(''));
58 assert_throws_dom('DataCloneError', () => c.postMessage(Symbol()));
64 assert_throws_dom('InvalidStateError', () => c.postMessage(Symbol()));
/third_party/node/lib/internal/webstreams/
Dtransfer.js142 port.postMessage({ type: 'error', value: error });
155 this[kState].port.postMessage({ type: 'pull' });
160 this[kState].port.postMessage({ type: 'error', value: reason });
166 this[kState].port.postMessage({ type: 'error', value: error });
209 port.postMessage({ type: 'error', value: error });
233 this[kState].port.postMessage({ type: 'chunk', value: chunk });
239 this[kState].port.postMessage({ type: 'error', value: error });
246 this[kState].port.postMessage({ type: 'close' });
252 this[kState].port.postMessage({ type: 'error', value: reason });
258 this[kState].port.postMessage({ type: 'error', value: error });
/third_party/node/test/fixtures/wpt/streams/transferable/resources/
Dservice-worker.js16 client.postMessage(orig, [orig]);
18 client.postMessage(e.message);
25 .then(() => client.postMessage('OK'))
26 .catch(e => client.postMessage(`BAD: ${e}`)));
28 client.postMessage(`BAD: ${e}`);
/third_party/node/test/fixtures/wpt/webmessaging/broadcastchannel/resources/
Dworker.js5 c.postMessage(e.data.ping);
10 c.postMessage({blob: new Blob(e.data.blob)});
29 c.postMessage('from worker');
32 onmessage = e => handler(e, postMessage);
36 port.onmessage = e => handler(e, msg => port.postMessage(msg));
/third_party/node/test/sequential/
Dtest-worker-eventlooputil.js33 return this.postMessage(eventLoopUtilization());
40 return this.postMessage(eventLoopUtilization(elu));
58 worker.postMessage({ metricsCh: metricsCh.port1 }, [ metricsCh.port1 ]);
62 metricsCh.port2.postMessage({ cmd: 'elu' });
99 metricsCh.port2.postMessage({ cmd: 'spin', dur: 50 });
108 metricsCh.port2.postMessage({ cmd: 'close' });
/third_party/node/lib/internal/modules/esm/
Dworker.js95 syncCommPort.postMessage(wrapMessage('exit', code ?? process.exitCode));
118 syncCommPort.postMessage(wrapMessage('error', initializationError));
120 …syncCommPort.postMessage(wrapMessage('success', { preloadScripts }), preloadScripts.map(({ port })…
146 port.postMessage(wrapMessage('never-settle'));
206 (port ?? syncCommPort).postMessage(
212 (port ?? syncCommPort).postMessage(wrapMessage('error', exception));
/third_party/skia/tools/sk_app/android/
Dsurface_glue_android.cpp107 void SkiaAndroidApp::postMessage(const Message& message) const { in postMessage() function in sk_app::SkiaAndroidApp
249 skiaAndroidApp->postMessage(Message(kDestroyApp)); in Java_org_skia_viewer_ViewerApplication_destroyNativeApp()
257 skiaAndroidApp->postMessage(message); in Java_org_skia_viewer_ViewerActivity_onSurfaceCreated()
265 skiaAndroidApp->postMessage(message); in Java_org_skia_viewer_ViewerActivity_onSurfaceChanged()
271 skiaAndroidApp->postMessage(Message(kSurfaceDestroyed)); in Java_org_skia_viewer_ViewerActivity_onSurfaceDestroyed()
281 skiaAndroidApp->postMessage(message); in Java_org_skia_viewer_ViewerActivity_onKeyPressed()
292 skiaAndroidApp->postMessage(message); in Java_org_skia_viewer_ViewerActivity_onTouched()
303 skiaAndroidApp->postMessage(message); in Java_org_skia_viewer_ViewerActivity_onUIStateChanged()
/third_party/node/test/common/wpt/
Dworker.js33 parentPort.postMessage({
46 parentPort.postMessage({
55 parentPort.postMessage({
/third_party/node/test/fixtures/wpt/common/security-features/scope/template/
Dworker.js.template18 port.postMessage({error: configurationError});
24 .then(result => port.postMessage(result))
27 port.postMessage({error: message});

12345678