4 <meta http-equiv=
"Content-Security-Policy" content=
"sandbox allow-scripts allow-modals">
5 <script src=
"/resources/testharness.js"></script>
6 <script src=
"/resources/testharnessreport.js"></script>
11 var result
= alert("Yay!");
12 assert_equals(result
, undefined);
13 }, "alert() returns synchronously in a sandboxed page without blocking on user input.");
17 assert_equals(result
, undefined);
18 }, "print() returns synchronously in a sandboxed page without blocking on user input.");
21 var result
= confirm("Question?");
22 assert_equals(result
, true);
23 }, "confirm() returns 'true' in a sandboxed page (in our test environment).");
26 var result
= prompt("Question?");
27 assert_equals(result
, null);
28 }, "prompt() returns 'null' synchronously in a sandboxed page without blocking on user input.");