
    <script nonce='dummy'>
        var newFunctionScriptRan = false;

        async_test(function(t) {
            window.addEventListener('securitypolicyviolation', t.step_func_done(function(e) {
                assert_false(newFunctionScriptRan);
                assert_equals(e.effectiveDirective, 'script-src');
            }));

            assert_throws_js(Error,
                function() {
                    try {
                        new Function('newFunctionScriptRan = true;')();
              