Lines Matching refs:realm
4 // are created in the correct realm. The tests work by creating an iframe for
5 // each realm and then posting Javascript to them to be evaluated. Inputs and
6 // outputs are passed around via global variables in each realm's scope.
39 // The realm that the constructor function comes from.
42 // The realm in which the constructor object is called.
45 // The realm in which reading happens.
48 // The realm in which writing happens.
51 // The realm that provides the definitions of Readable and Writable methods.
74 // Eval string "code" in the content of realm "realm". Evaluation happens
76 function evalInRealm(realm, code) {
77 realm.postMessage(code, window.origin);
82 async function evalInRealmAndWait(realm, code) {
85 realm[resolve] = r;
87 evalInRealm(realm, code);
88 evalInRealm(realm, `${resolve}();`);
94 async function evalInRealmAndReturn(realm, code) {
96 await evalInRealmAndWait(realm, `window.${myId} = ${code};`);
97 return realm[myId];
145 'obj should be in constructor realm');
146 }, `a ${classname} object should be associated with the realm the ` +
162 'readable should be in constructor realm');
164 'writable should be in constructor realm');
166 'same realm as the constructor definition');
176 'result should be in constructor realm');
178 'chunk should be in constructor realm');
180 'same realm as the constructor of TextEncoderStream');
189 'result should be in constructor realm');
191 'chunk should be in constructor realm');
193 'from the same realm as the constructor of TextEncoderStream');
195 // There is not absolute consensus regarding what realm exceptions should be
207 'write TypeError should come from constructor realm');
210 'read TypeError should come from constructor realm');
211 }, 'TypeError for unconvertable chunk should come from constructor realm ' +
222 'result should be in constructor realm');
223 // A string is not an object, so doesn't have an associated realm. Accessing
225 // current realm. So checking the realm of result.value is not useful.
227 'same realm as the constructor of TextDecoderStream');
236 'result should be in constructor realm');
237 // A string is not an object, so doesn't have an associated realm. Accessing
239 // current realm. So checking the realm of result.value is not useful.
241 'read should come from the same realm as the constructor of TextDecoderStream');
250 'write TypeError should come from constructor realm'
255 'read TypeError should come from constructor realm'
258 'realm of TextDecoderStream');
269 'write TypeError should come from constructor realm'
274 'read TypeError should come from constructor realm'
276 }, 'TypeError for invalid chunk should come from constructor realm ' +
300 'close TypeError should come from constructor realm'
302 }, 'TypeError for incomplete input should come from constructor realm ' +