blob: a910137c5cc257c1f1b1383ae2346dfdff98861c [file] [log] [blame]
<!DOCTYPE html>
<head>
<title>SRI on cross origin CORS enabled script</title>
</head>
<body>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
setup({single_test: true});
var result = '';
var scriptLoaded = function() {
assert_equals(result, 'ran', 'Script ran.');
done();
};
var scriptError = function() {
assert_unreached('Script error.');
done();
};
</script>
<script crossorigin integrity="sha256-mk_DwEwGGoyrh4sgi9t0nYTO1Lrft3w6vzaNuMaZrtQ=" src="http://localhost:8000/security/resources/cors-script.php?value=ran" onload="scriptLoaded();" onerror="scriptError();"></script>
</body>
</html>