mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Ref #13316: Sync all test documents on full vs. minified source.
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
<script src="../../../dist/jquery.min.js"></script>
|
||||
<script src="../../jquery.js"></script>
|
||||
</div>
|
||||
<script>
|
||||
jQuery(function() {
|
||||
|
||||
3
test/data/support/csp.js
Normal file
3
test/data/support/csp.js
Normal file
@@ -0,0 +1,3 @@
|
||||
jQuery(function() {
|
||||
parent.iframeCallback( jQuery.support );
|
||||
});
|
||||
22
test/data/support/csp.php
Normal file
22
test/data/support/csp.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
# Support: Firefox
|
||||
header("X-Content-Security-Policy: default-src 'self';");
|
||||
|
||||
# Support: Webkit, Safari 5
|
||||
# http://stackoverflow.com/questions/13663302/why-does-my-content-security-policy-work-everywhere-but-safari
|
||||
header("X-WebKit-CSP: script-src " . $_SERVER["HTTP_HOST"] . " 'self'");
|
||||
|
||||
header("Content-Security-Policy: default-src 'self'");
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>CSP Test Page</title>
|
||||
<script src="../../jquery.js"></script>
|
||||
<script src="csp.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<p>CSP Test Page</p>
|
||||
</body>
|
||||
</html>
|
||||
@@ -12,7 +12,7 @@
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
<script src="../../../dist/jquery.min.js"></script>
|
||||
<script src="../../jquery.js"></script>
|
||||
</div>
|
||||
<script>
|
||||
jQuery(function() {
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
background: url('../1x1.jpg');
|
||||
}
|
||||
</style>
|
||||
<script src="../../../dist/jquery.min.js"></script>
|
||||
<script src="../../jquery.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
|
||||
Reference in New Issue
Block a user