/third_party/node/test/parallel/ |
D | test-worker-message-port.js | 13 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 …]
|
D | test-worker-broadcastchannel-wpt.js | 20 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 …]
|
D | test-whatwg-webstreams-transfer.js | 103 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 …]
|
D | test-worker-broadcastchannel.js | 29 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');
|
D | test-inspector-workers-flat-list.js | 27 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 });
|
D | test-worker-message-port-transfer-filehandle.js | 15 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]);
|
D | test-worker-onmessage.js | 19 w.postMessage(2); 22 parentPort.postMessage(message.data * 2); 23 parentPort.postMessage(undefined); 24 parentPort.postMessage(null);
|
D | test-worker-process-cwd.js | 27 w.postMessage(process.cwd()); 43 parentPort.postMessage(cwd); 51 w.postMessage(message); 58 parentPort.postMessage(cwd);
|
D | test-crypto-key-objects-messageport.js | 29 parentPort.postMessage(keyToString(key)); 51 port1.postMessage({ key }); 66 worker.postMessage({ key }); 84 port1.postMessage({ key });
|
D | test-worker-message-port-move.js | 23 assert(port.postMessage instanceof Function); 43 port.postMessage({}); 51 port.postMessage(global); 68 port2.postMessage({ p: otherChannel.port1 }, [ otherChannel.port1 ]);
|
D | test-abortsignal-cloneable.js | 33 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]);
|
D | test-worker-message-port-terminate-transfer-list.js | 17 parentPort.postMessage('ready'); 20 port1.postMessage({}, { 25 parentPort.postMessage('UNREACHABLE');
|
D | test-inspector-connect-main-thread.js | 90 parentPort.postMessage({ doConsoleLog: true }); 154 parentPort.postMessage('Ready'); 167 parentPort.postMessage({ messagesSent }); 184 parentPort.postMessage('Ready'); 185 parentPort.postMessage({ messagesSent });
|
D | test-worker-message-transfer-port-mark-as-untransferable.js | 13 port1.postMessage(ab, [ ab ]); 26 channel1.port1.postMessage(channel2.port1, [ channel2.port1 ]); 29 channel2.port1.postMessage('still works, not closed/transferred');
|
D | test-worker-message-port-receive-message.js | 14 port1.postMessage(message1); 15 port1.postMessage(message2); 23 port1.postMessage(message1);
|
/third_party/node/test/fixtures/wpt/webmessaging/broadcastchannel/ |
D | basics.any.js | 14 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 …]
|
D | interface.any.js | 26 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/ |
D | transfer.js | 142 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/ |
D | service-worker.js | 16 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/ |
D | worker.js | 5 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/ |
D | test-worker-eventlooputil.js | 33 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/ |
D | worker.js | 95 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/ |
D | surface_glue_android.cpp | 107 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/ |
D | worker.js | 33 parentPort.postMessage({ 46 parentPort.postMessage({ 55 parentPort.postMessage({
|
/third_party/node/test/fixtures/wpt/common/security-features/scope/template/ |
D | worker.js.template | 18 port.postMessage({error: configurationError}); 24 .then(result => port.postMessage(result)) 27 port.postMessage({error: message});
|