5 <title>Test for ShadowRealms
</title>
6 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
7 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css" />
8 <iframe id=
"ifr"></iframe>
13 <script type=
"application/javascript">
14 SimpleTest.waitForExplicitFinish();
17 let realm = new ShadowRealm();
19 let install = (fun, internal_name) =
> {
20 let installer = realm.evaluate(`var ${internal_name}; (x) =
> { ${internal_name} = x}`);
26 realm.evaluate(`is(true, true, 'inside realm')`);
28 is(realm.evaluate(
"10"),
10,
"ten is ten");