blob: e74ff010781a02ec9281337217d057a6d00dfda8 [file] [log] [blame]
<script>
if (window.testRunner)
testRunner.dumpAsText();
</script>
<iframe sandbox="allow-scripts"
src="data:text/html,
<script>
try {
indexedDB.open('test');
console.log('FAIL: indexedDB.open() should throw a SECURITY_ERR in a sandbox.');
} catch (e) {
if (e.code === DOMException.SECURITY_ERR)
console.log('PASS: indexedDB.open() threw a SECURITY_ERR!');
else
console.log('FAIL: indexedDB.open() threw a ' + e.name);
}
</script>"
></iframe>