blob: 937e260e39c6b655d47c4bd87593dc5494affec6 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<script>
promise_test(t => {
const profiler = performance.profile({ sampleInterval: 10 });
return promise_rejects_dom(t, 'NotAllowedError', profiler);
}, 'profiling should throw without passing document policy');
</script>
</body>
</html>