mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Ref #13316: Sync all documents on full vs. minified source. Close gh-1147.
This commit is contained in:
parent
f3db084f7c
commit
363299ac24
@ -60,7 +60,7 @@ jQuery.support = (function() {
|
|||||||
support.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked;
|
support.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked;
|
||||||
|
|
||||||
// Support: Firefox 17+
|
// Support: Firefox 17+
|
||||||
// Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP), test/csp.php
|
// Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP)
|
||||||
div.setAttribute( "onfocusin", "t" );
|
div.setAttribute( "onfocusin", "t" );
|
||||||
support.focusinBubbles = "onfocusin" in window || div.attributes.onfocusin.expando === false;
|
support.focusinBubbles = "onfocusin" in window || div.attributes.onfocusin.expando === false;
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||||
<title>Attempt to block tests because of dangling XHR requests (IE)</title>
|
<title>Attempt to block tests because of dangling XHR requests (IE)</title>
|
||||||
<script type="text/javascript" src="../../../dist/jquery.min.js"></script>
|
<script src="../../jquery.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
window.onunload = function() {};
|
window.onunload = function() {};
|
||||||
jQuery(function() {
|
jQuery(function() {
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
errors.push( errorMessage );
|
errors.push( errorMessage );
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<script src="../../../dist/jquery.min.js"></script>
|
<script src="../../jquery.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<script>
|
<script>
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div>
|
<div>
|
||||||
<script src="../../../dist/jquery.min.js"></script>
|
<script src="../../jquery.js"></script>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div>
|
<div>
|
||||||
<script src="../../../dist/jquery.min.js"></script>
|
<script src="../../jquery.js"></script>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html>
|
<html>
|
||||||
<script src="/dist/jquery.js"></script>
|
<script src="../../jquery.js"></script>
|
||||||
<script>
|
<script>
|
||||||
function report( event ) {
|
function report( event ) {
|
||||||
var payload = {
|
var payload = {
|
@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||||
<title>Test case for jQuery ticket #11470</title>
|
<title>Test case for jQuery ticket #11470</title>
|
||||||
<script type="text/javascript" src="../../../dist/jquery.min.js"></script>
|
<script src="../../jquery.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
jQuery.when( jQuery.ready ).done(function() {
|
jQuery.when( jQuery.ready ).done(function() {
|
||||||
jQuery("body").append("<div>modifying DOM</div>");
|
jQuery("body").append("<div>modifying DOM</div>");
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||||
<title>Test case for jQuery ticket #10067</title>
|
<title>Test case for jQuery ticket #10067</title>
|
||||||
<script type="text/javascript" src="../../../dist/jquery.min.js"></script>
|
<script src="../../jquery.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="qunit-fixture"></div>
|
<div id="qunit-fixture"></div>
|
||||||
<script src="../../../dist/jquery.min.js"></script>
|
<script src="../../jquery.js"></script>
|
||||||
<script>
|
<script>
|
||||||
var script = document.getElementsByTagName( "script" )[ 0 ],
|
var script = document.getElementsByTagName( "script" )[ 0 ],
|
||||||
div = document.createElement( "div" ),
|
div = document.createElement( "div" ),
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
p.instructions { position: absolute; bottom: 0; }
|
p.instructions { position: absolute; bottom: 0; }
|
||||||
#positionTest { position: absolute; }
|
#positionTest { position: absolute; }
|
||||||
</style>
|
</style>
|
||||||
<script src="../../../dist/jquery.min.js"></script>
|
<script src="../../jquery.js"></script>
|
||||||
<script type="text/javascript" charset="utf-8">
|
<script type="text/javascript" charset="utf-8">
|
||||||
jQuery(function($) {
|
jQuery(function($) {
|
||||||
$('.absolute').click(function() {
|
$('.absolute').click(function() {
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
#marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; }
|
#marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; }
|
||||||
#firstElement { width: 50px; height: 50px; background: green; }
|
#firstElement { width: 50px; height: 50px; background: green; }
|
||||||
</style>
|
</style>
|
||||||
<script src="../../../dist/jquery.min.js"></script>
|
<script src="../../jquery.js"></script>
|
||||||
<script type="text/javascript" charset="utf-8">
|
<script type="text/javascript" charset="utf-8">
|
||||||
jQuery(function($) {
|
jQuery(function($) {
|
||||||
$('body').click(function() {
|
$('body').click(function() {
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
#forceScroll { width: 5000px; height: 5000px; }
|
#forceScroll { width: 5000px; height: 5000px; }
|
||||||
#marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; }
|
#marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; }
|
||||||
</style>
|
</style>
|
||||||
<script src="../../../dist/jquery.min.js"></script>
|
<script src="../../jquery.js"></script>
|
||||||
<script type="text/javascript" charset="utf-8">
|
<script type="text/javascript" charset="utf-8">
|
||||||
jQuery(function($) {
|
jQuery(function($) {
|
||||||
window.scrollTo(1000,1000);
|
window.scrollTo(1000,1000);
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
#relative-2 { top: 20px; left: 20px; }
|
#relative-2 { top: 20px; left: 20px; }
|
||||||
#marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; }
|
#marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; }
|
||||||
</style>
|
</style>
|
||||||
<script src="../../../dist/jquery.min.js"></script>
|
<script src="../../jquery.js"></script>
|
||||||
<script type="text/javascript" charset="utf-8">
|
<script type="text/javascript" charset="utf-8">
|
||||||
jQuery(function($) {
|
jQuery(function($) {
|
||||||
$('.relative').click(function() {
|
$('.relative').click(function() {
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
#forceScroll { width: 5000px; height: 5000px; }
|
#forceScroll { width: 5000px; height: 5000px; }
|
||||||
#marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; }
|
#marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; }
|
||||||
</style>
|
</style>
|
||||||
<script src="../../../dist/jquery.min.js"></script>
|
<script src="../../jquery.js"></script>
|
||||||
<script type="text/javascript" charset="utf-8">
|
<script type="text/javascript" charset="utf-8">
|
||||||
jQuery(function($) {
|
jQuery(function($) {
|
||||||
window.scrollTo(1000,1000);
|
window.scrollTo(1000,1000);
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
#static-2 { top: 20px; left: 20px; }
|
#static-2 { top: 20px; left: 20px; }
|
||||||
#marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; }
|
#marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; }
|
||||||
</style>
|
</style>
|
||||||
<script src="../../../dist/jquery.min.js"></script>
|
<script src="../../jquery.js"></script>
|
||||||
<script type="text/javascript" charset="utf-8">
|
<script type="text/javascript" charset="utf-8">
|
||||||
jQuery(function($) {
|
jQuery(function($) {
|
||||||
$('.static').click(function() {
|
$('.static').click(function() {
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
th, td { border: 1px solid #000; width: 100px; height: 100px; }
|
th, td { border: 1px solid #000; width: 100px; height: 100px; }
|
||||||
#marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; }
|
#marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; }
|
||||||
</style>
|
</style>
|
||||||
<script src="../../../dist/jquery.min.js"></script>
|
<script src="../../jquery.js"></script>
|
||||||
<script type="text/javascript" charset="utf-8">
|
<script type="text/javascript" charset="utf-8">
|
||||||
jQuery(function($) {
|
jQuery(function($) {
|
||||||
$('table, th, td').click(function() {
|
$('table, th, td').click(function() {
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
||||||
<title>jQuery selector - attributes</title>
|
<title>jQuery selector - attributes</title>
|
||||||
|
|
||||||
<script src="../../../dist/jquery.min.js"></script>
|
<script src="../../jquery.js"></script>
|
||||||
|
|
||||||
<script id="script1"
|
<script id="script1"
|
||||||
defer
|
defer
|
||||||
|
@ -4,18 +4,21 @@
|
|||||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
||||||
<title>jQuery selector - sizzle cache</title>
|
<title>jQuery selector - sizzle cache</title>
|
||||||
|
|
||||||
<script src="../../../dist/jquery.js"></script>
|
<script src="../../jquery.js"></script>
|
||||||
<script>
|
<script>
|
||||||
var $cached = jQuery.noConflict(true);
|
document.write(
|
||||||
|
"<script>var $cached = jQuery.noConflict(true);<\x2Fscript>" +
|
||||||
|
"<script src='" + document.getElementById("jquery-js").src + "?overwrite'><\x2Fscript>"
|
||||||
|
);
|
||||||
</script>
|
</script>
|
||||||
<script src="../../../dist/jquery.min.js"></script>
|
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<div class="test">
|
<div class="test">
|
||||||
<a href="#" id="collision">Worlds collide</a>
|
<a href="#" id="collision">Worlds collide</a>
|
||||||
</div>
|
</div>
|
||||||
|
<script>
|
||||||
|
window.parent.iframeCallback( $cached, jQuery, document );
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div>
|
<div>
|
||||||
<script src="../../../dist/jquery.min.js"></script>
|
<script src="../../jquery.js"></script>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
jQuery(function() {
|
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 );
|
||||||
|
});
|
@ -1,14 +1,14 @@
|
|||||||
<?php
|
<?php
|
||||||
header("X-Content-Security-Policy: default-src localhost 'self';");
|
header("X-Content-Security-Policy: default-src 'self';");
|
||||||
header("X-WebKit-CSP: script-src 'self'; style-src 'self' 'unsafe-inline'");
|
header("X-WebKit-CSP: script-src 'self'");
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
<title>CSP Test Page</title>
|
<title>CSP Test Page</title>
|
||||||
|
<script src="../../jquery.js"></script>
|
||||||
<script src="../dist/jquery.js"></script>
|
<script src="csp.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<p>CSP Test Page</p>
|
<p>CSP Test Page</p>
|
@ -12,7 +12,7 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div>
|
<div>
|
||||||
<script src="../../../dist/jquery.min.js"></script>
|
<script src="../../jquery.js"></script>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
jQuery(function() {
|
jQuery(function() {
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
background: url('../1x1.jpg');
|
background: url('../1x1.jpg');
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<script src="../../../dist/jquery.min.js"></script>
|
<script src="../../jquery.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<script>
|
<script>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Event Delegation Tests</title>
|
<title>Event Delegation Tests</title>
|
||||||
<script src="../dist/jquery.min.js"></script>
|
<script src="jquery.js"></script>
|
||||||
<style>
|
<style>
|
||||||
table {
|
table {
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Hover tests</title>
|
<title>Hover tests</title>
|
||||||
<script src="../dist/jquery.min.js"></script>
|
<script src="jquery.js"></script>
|
||||||
<style>
|
<style>
|
||||||
/* Remove body dimensions so we can test enter/leave to surrounding browser chrome */
|
/* Remove body dimensions so we can test enter/leave to surrounding browser chrome */
|
||||||
body, html {
|
body, html {
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Load jQuery
|
// Load jQuery
|
||||||
document.write( "<script src='" + src + "'><\/script>" );
|
document.write( "<script id='jquery-js' src='" + src + "'><\x2Fscript>" );
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
<script src="data/testrunner.js"></script>
|
<script src="data/testrunner.js"></script>
|
||||||
|
5
test/jquery.js
vendored
Normal file
5
test/jquery.js
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
// Use the right jQuery source in iframe tests
|
||||||
|
document.write( "<script id='jquery-js' src='" +
|
||||||
|
parent.document.getElementById("jquery-js").src.replace( /^(?![^\/?#]+:)/,
|
||||||
|
parent.location.pathname.replace( /[^\/]$/, "$0/" ) ) +
|
||||||
|
"'><\x2Fscript>" );
|
@ -4,7 +4,7 @@
|
|||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
<title>jQuery Local File Test</title>
|
<title>jQuery Local File Test</title>
|
||||||
<!-- Includes -->
|
<!-- Includes -->
|
||||||
<script src="../dist/jquery.min.js"></script>
|
<script src="jquery.js"></script>
|
||||||
<style>
|
<style>
|
||||||
.error { color: red; }
|
.error { color: red; }
|
||||||
.success { color: green; }
|
.success { color: green; }
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
<style>
|
<style>
|
||||||
div { margin-top: 10px; }
|
div { margin-top: 10px; }
|
||||||
</style>
|
</style>
|
||||||
<script src="../dist/jquery.min.js"></script>
|
<script src="jquery.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$('button').live('click', function () {
|
$('button').live('click', function () {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
|
@ -1,110 +0,0 @@
|
|||||||
<?php
|
|
||||||
$baseURL = "http://ajax.googleapis.com/ajax/libs/";
|
|
||||||
$libraries = array(
|
|
||||||
"Dojo" => array(
|
|
||||||
"versions" => array( "1.1.1", "1.2.0", "1.2.3", "1.3.0", "1.3.1", "1.3.2", "1.4.0", "1.4.1", "1.4.3", "1.5.0" ),
|
|
||||||
"url" => "dojo/XYZ/dojo/dojo.xd.js"
|
|
||||||
),
|
|
||||||
"ExtCore" => array(
|
|
||||||
"versions" => array( "3.0.0", "3.1.0" ),
|
|
||||||
"url" => "ext-core/XYZ/ext-core.js"
|
|
||||||
),
|
|
||||||
"jQuery" => array(
|
|
||||||
"versions" => array( "1.2.3", "1.2.6", "1.3.0", "1.3.1", "1.3.2", "1.4.0", "1.4.1", "1.4.2", "1.4.3", "1.4.4", "1.5.0" ),
|
|
||||||
"url" => "jquery/XYZ/jquery.min.js"
|
|
||||||
),
|
|
||||||
"jQueryUI" => array(
|
|
||||||
"versions" => array( "1.5.2", "1.5.3", "1.6.0", "1.7.0", "1.7.1", "1.7.2", "1.7.3", "1.8.0", "1.8.1", "1.8.2", "1.8.4", "1.8.5", "1.8.6", "1.8.7", "1.8.8", "1.8.9" ),
|
|
||||||
"url" => "jqueryui/XYZ/jquery-ui.min.js"
|
|
||||||
),
|
|
||||||
"MooTools" => array(
|
|
||||||
"versions" => array( "1.1.1", "1.1.2", "1.2.1", "1.2.2", "1.2.3", "1.2.4", "1.2.5", "1.3.0" ),
|
|
||||||
"url" => "mootools/XYZ/mootools-yui-compressed.js"
|
|
||||||
),
|
|
||||||
"Prototype" => array(
|
|
||||||
"versions" => array( "1.6.0.2", "1.6.0.3", "1.6.1.0", "1.7.0.0" ),
|
|
||||||
"url" => "prototype/XYZ/prototype.js"
|
|
||||||
),
|
|
||||||
"scriptaculous" => array(
|
|
||||||
"versions" => array( "1.8.1", "1.8.2", "1.8.3" ),
|
|
||||||
"url" => "scriptaculous/XYZ/scriptaculous.js"
|
|
||||||
),
|
|
||||||
"SWFObject" => array(
|
|
||||||
"versions" => array( "2.1", "2.2" ),
|
|
||||||
"url" => "swfobject/XYZ/swfobject.js"
|
|
||||||
),
|
|
||||||
"YUI" => array(
|
|
||||||
"versions" => array( "2.6.0", "2.7.0", "2.8.0r4", "2.8.1", "2.8.2", "3.3.0" ),
|
|
||||||
"url" => "yui/XYZ/build/yui/yui-min.js"
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
if( count($_POST) ) {
|
|
||||||
$includes = array();
|
|
||||||
foreach( $_POST as $name => $ver ){
|
|
||||||
if ( empty( $libraries[ $name ] )) {
|
|
||||||
echo "unsupported library ". $name;
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
$url = $libraries[ $name ][ "url" ];
|
|
||||||
if( $name == "YUI" && $ver[0] == "2" ) {
|
|
||||||
$url = str_replace( "/yui", "/yuiloader", $url);
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( empty( $libraries[ $name ][ "versions" ][ $ver ] )) {
|
|
||||||
echo "library ". $name ." not supported in version ". $ver;
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
$include = "<script src='$baseURL".str_replace("XYZ", $ver, $url)."'></script>\n";
|
|
||||||
if( $lib == "prototype" ) { // prototype must be included first
|
|
||||||
array_unshift( $includes, $include );
|
|
||||||
} else {
|
|
||||||
array_push( $includes, $include );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$includes = implode( "\n", $includes );
|
|
||||||
$suite = file_get_contents( "index.html" );
|
|
||||||
echo str_replace( "<!-- Includes -->", $includes, $suite );
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
|
||||||
<title>Run jQuery Test Suite Polluted</title>
|
|
||||||
<style type="text/css">
|
|
||||||
.otherlibs fieldset {
|
|
||||||
width: 400px
|
|
||||||
}
|
|
||||||
.otherlibs label{
|
|
||||||
margin: 5px 0px 5px 20px;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body id="body">
|
|
||||||
<h1 id="header">jQuery Test Suite</h1>
|
|
||||||
<h2 id="banner" class="fail"></h2>
|
|
||||||
<h2 id="userAgent">Choose other libraries to include</h2>
|
|
||||||
|
|
||||||
<form class="otherlibs" action="./polluted.php" method="POST">
|
|
||||||
<?php
|
|
||||||
foreach( $libraries as $name => $data ) {
|
|
||||||
echo "<fieldset><legend>$name</legend>";
|
|
||||||
$i = 0;
|
|
||||||
foreach( $data[ "versions" ] as $ver ) {
|
|
||||||
$i++;
|
|
||||||
echo "<label><input type='radio' name='$name' value='$ver' />$ver</label>";
|
|
||||||
if( !($i % 4) ) echo "<br />";
|
|
||||||
}
|
|
||||||
echo "</fieldset>";
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<input type="submit" value=" Run " class="submit" />
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -14,7 +14,7 @@
|
|||||||
#output { background-color: green }
|
#output { background-color: green }
|
||||||
#expectedOutput { background-color: green }
|
#expectedOutput { background-color: green }
|
||||||
</style>
|
</style>
|
||||||
<script src="../dist/jquery.min.js"></script>
|
<script src="jquery.js"></script>
|
||||||
|
|
||||||
<!-- Load the script loader that uses
|
<!-- Load the script loader that uses
|
||||||
jQuery.readyWait -->
|
jQuery.readyWait -->
|
||||||
|
@ -1372,7 +1372,7 @@ test("Submit event can be stopped (#11049)", function() {
|
|||||||
// Test beforeunload event only if it supported (i.e. not Opera)
|
// Test beforeunload event only if it supported (i.e. not Opera)
|
||||||
if ( window.onbeforeunload === null ) {
|
if ( window.onbeforeunload === null ) {
|
||||||
asyncTest("on(beforeunload)", 1, function() {
|
asyncTest("on(beforeunload)", 1, function() {
|
||||||
var iframe = jQuery(jQuery.parseHTML("<iframe src='data/onbeforeunload.html'><iframe>"));
|
var iframe = jQuery(jQuery.parseHTML("<iframe src='data/event/onbeforeunload.html'><iframe>"));
|
||||||
|
|
||||||
window.onmessage = function( event ) {
|
window.onmessage = function( event ) {
|
||||||
var payload = JSON.parse( event.data );
|
var payload = JSON.parse( event.data );
|
||||||
|
@ -175,10 +175,9 @@ testIframe("selector/html5_selector", "attributes - jQuery.attr", function( jQue
|
|||||||
t( "Improperly named form elements do not interfere with form selections (#9570)", "form[name='formName']", ["form1"] );
|
t( "Improperly named form elements do not interfere with form selections (#9570)", "form[name='formName']", ["form1"] );
|
||||||
});
|
});
|
||||||
|
|
||||||
testIframe("selector/sizzle_cache", "Sizzle cache collides with multiple Sizzles on a page", function( jQuery, window, document ) {
|
testIframeWithCallback("Sizzle cache collides with multiple Sizzles on a page", "selector/sizzle_cache.html", function( $cached, jQuery, document ) {
|
||||||
var $cached = window["$cached"];
|
expect(4);
|
||||||
|
notStrictEqual( jQuery, $cached, "Loaded two engines" );
|
||||||
expect(3);
|
|
||||||
deepEqual( $cached(".test a").get(), [ document.getElementById("collision") ], "Select collision anchor with first sizzle" );
|
deepEqual( $cached(".test a").get(), [ document.getElementById("collision") ], "Select collision anchor with first sizzle" );
|
||||||
equal( jQuery(".evil a").length, 0, "Select nothing with second sizzle" );
|
equal( jQuery(".evil a").length, 0, "Select nothing with second sizzle" );
|
||||||
equal( jQuery(".evil a").length, 0, "Select nothing again with second sizzle" );
|
equal( jQuery(".evil a").length, 0, "Select nothing again with second sizzle" );
|
||||||
|
@ -9,33 +9,18 @@ test("boxModel", function() {
|
|||||||
if ( jQuery.css ) {
|
if ( jQuery.css ) {
|
||||||
testIframeWithCallback( "body background is not lost if set prior to loading jQuery (#9239)", "support/bodyBackground.html", function( color, support ) {
|
testIframeWithCallback( "body background is not lost if set prior to loading jQuery (#9239)", "support/bodyBackground.html", function( color, support ) {
|
||||||
expect( 2 );
|
expect( 2 );
|
||||||
var i,
|
var okValue = {
|
||||||
passed = true,
|
|
||||||
okValue = {
|
|
||||||
"#000000": true,
|
"#000000": true,
|
||||||
"rgb(0, 0, 0)": true
|
"rgb(0, 0, 0)": true
|
||||||
};
|
};
|
||||||
ok( okValue[ color ], "color was not reset (" + color + ")" );
|
ok( okValue[ color ], "color was not reset (" + color + ")" );
|
||||||
|
|
||||||
for ( i in jQuery.support ) {
|
deepEqual( jQuery.extend( {}, support ), jQuery.support, "Same support properties" );
|
||||||
if ( jQuery.support[ i ] !== support[ i ] ) {
|
|
||||||
passed = false;
|
|
||||||
strictEqual( jQuery.support[ i ], support[ i ], "Support property " + i + " is different" );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
for ( i in support ) {
|
|
||||||
if ( !( i in jQuery.support ) ) {
|
|
||||||
passed = false;
|
|
||||||
strictEqual( jQuery.support[ i ], support[ i ], "Unexpected property: " + i );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
ok( passed, "Same support properties" );
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
testIframeWithCallback( "A background on the testElement does not cause IE8 to crash (#9823)", "support/testElementCrash.html", function() {
|
testIframeWithCallback( "A background on the testElement does not cause IE8 to crash (#9823)", "support/testElementCrash.html", function() {
|
||||||
expect(1);
|
expect( 1 );
|
||||||
ok( true, "IE8 does not crash" );
|
ok( true, "IE8 does not crash" );
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -43,3 +28,8 @@ testIframeWithCallback( "box-sizing does not affect jQuery.support.shrinkWrapBlo
|
|||||||
expect( 1 );
|
expect( 1 );
|
||||||
strictEqual( shrinkWrapBlocks, jQuery.support.shrinkWrapBlocks, "jQuery.support.shrinkWrapBlocks properties are the same" );
|
strictEqual( shrinkWrapBlocks, jQuery.support.shrinkWrapBlocks, "jQuery.support.shrinkWrapBlocks properties are the same" );
|
||||||
});
|
});
|
||||||
|
|
||||||
|
testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Security/CSP) restrictions", "support/csp.php", function( support ) {
|
||||||
|
expect( 1 );
|
||||||
|
deepEqual( jQuery.extend( {}, support ), jQuery.support, "No violations of CSP polices" );
|
||||||
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user