Skip to content
Permalink
Browse files

Relativize all urls pertaining to dist/jquery.js so users can run the…

…ir server from any file location; Make sure Sizzle is available for its tests in testrunner.
  • Loading branch information
timmywil committed Jun 4, 2012
1 parent 81c7b83 commit 37ffb29d37129293523bf1deacf3609a28b0ceec
Submodule sizzle updated 1 files
+2 −2 test/unit/selector.js
@@ -5,7 +5,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CSP Test Page</title>

<script src="/dist/jquery.js"></script>
<script src="../dist/jquery.js"></script>
</head>
<body>
<p>CSP Test Page</p>
@@ -11,7 +11,7 @@
</head>
<body>
<div>
<script src="/dist/jquery.js"></script>
<script src="../../../dist/jquery.js"></script>
</div>
</body>
</html>
@@ -15,7 +15,7 @@
</head>
<body>
<div>
<script src="/dist/jquery.js"></script>
<script src="../../../dist/jquery.js"></script>
</div>
</body>
</html>
@@ -19,7 +19,7 @@
});
}
document.getElementsByTagName("head")[ 0 ].appendChild( el );
el.src = "/dist/jquery.js";
el.src = "../../../dist/jquery.js";
}, 1000 );
}
</script>
@@ -3,7 +3,7 @@
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Test case for jQuery ticket #11470</title>
<script type="text/javascript" src="/dist/jquery.js"></script>
<script type="text/javascript" src="../../../dist/jquery.js"></script>
<script type="text/javascript">
jQuery.when( jQuery.ready ).done(function() {
jQuery("body").append("<div>modifying DOM</div>");
@@ -3,7 +3,7 @@
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Test case for jQuery ticket #10067</title>
<script type="text/javascript" src="/dist/jquery.js"></script>
<script type="text/javascript" src="../../../dist/jquery.js"></script>
</head>
<body>
<script type="text/javascript">
@@ -15,7 +15,7 @@
p.instructions { position: absolute; bottom: 0; }
#positionTest { position: absolute; }
</style>
<script src="/dist/jquery.js"></script>
<script src="../../../dist/jquery.js"></script>
<script type="text/javascript" charset="utf-8">
jQuery(function($) {
$('.absolute').click(function() {
@@ -8,7 +8,7 @@
body { margin: 1px; padding: 5px; }
#marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; }
</style>
<script src="/dist/jquery.js"></script>
<script src="../../../dist/jquery.js"></script>
<script type="text/javascript" charset="utf-8">
jQuery(function($) {
$('body').click(function() {
@@ -12,7 +12,7 @@
#forceScroll { width: 5000px; height: 5000px; }
#marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; }
</style>
<script src="/dist/jquery.js"></script>
<script src="../../../dist/jquery.js"></script>
<script type="text/javascript" charset="utf-8">
jQuery(function($) {
window.scrollTo(1000,1000);
@@ -10,7 +10,7 @@
#relative-2 { top: 20px; left: 20px; }
#marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; }
</style>
<script src="/dist/jquery.js"></script>
<script src="../../../dist/jquery.js"></script>
<script type="text/javascript" charset="utf-8">
jQuery(function($) {
$('.relative').click(function() {
@@ -13,7 +13,7 @@
#forceScroll { width: 5000px; height: 5000px; }
#marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; }
</style>
<script src="/dist/jquery.js"></script>
<script src="../../../dist/jquery.js"></script>
<script type="text/javascript" charset="utf-8">
jQuery(function($) {
window.scrollTo(1000,1000);
@@ -10,7 +10,7 @@
#static-2 { top: 20px; left: 20px; }
#marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; }
</style>
<script src="/dist/jquery.js"></script>
<script src="../../../dist/jquery.js"></script>
<script type="text/javascript" charset="utf-8">
jQuery(function($) {
$('.static').click(function() {
@@ -10,7 +10,7 @@
th, td { border: 1px solid #000; width: 100px; height: 100px; }
#marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; }
</style>
<script src="/dist/jquery.js"></script>
<script src="../../../dist/jquery.js"></script>
<script type="text/javascript" charset="utf-8">
jQuery(function($) {
$('table, th, td').click(function() {
@@ -4,7 +4,7 @@
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>jQuery selector - attributes</title>

<script src="/dist/jquery.js"></script>
<script src="../../../dist/jquery.js"></script>

<script id="script1"
defer
@@ -4,11 +4,11 @@
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>jQuery selector - sizzle cache</title>

<script src="/dist/jquery.js"></script>
<script src="../../../dist/jquery.js"></script>
<script>
var $cached = jQuery.noConflict(true);
</script>
<script src="/dist/jquery.js"></script>
<script src="../../../dist/jquery.js"></script>

</head>
<body>
@@ -17,7 +17,7 @@
</head>
<body>
<div>
<script src="/dist/jquery.js"></script>
<script src="../../../dist/jquery.js"></script>
</div>
<script>
jQuery(function() {
@@ -7,7 +7,7 @@
background: url('http://s1.postimage.org/2d2r8xih0/body_background.png');
}
</style>
<script src="/dist/jquery.js"></script>
<script src="../../../dist/jquery.js"></script>
</head>
<body>
<script>
@@ -3,6 +3,10 @@
*/
jQuery.noConflict();

// Expose Sizzle for Sizzle's selector tests
// We remove Sizzle's globalization in jQuery
var Sizzle = Sizzle || jQuery.find;

/**
* QUnit hooks
*/
@@ -2,7 +2,7 @@
<html>
<head>
<title>Event Delegation Tests</title>
<script src="/dist/jquery.js"></script>
<script src="../dist/jquery.js"></script>
<style>
table {
border-collapse: collapse;
@@ -1,7 +1,7 @@
<html>
<head>
<title>Hover tests</title>
<script src="/dist/jquery.js"></script>
<script src="../dist/jquery.js"></script>
<style>
/* Remove body dimensions so we can test enter/leave to surrounding browser chrome */
body, html {
@@ -8,7 +8,7 @@
<!-- Includes -->

<script src="data/testinit.js"></script>
<script src="/dist/jquery.js"></script>
<script src="../dist/jquery.js"></script>

<script src="qunit/qunit/qunit.js"></script>
<script src="data/testrunner.js"></script>
@@ -4,7 +4,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jQuery Local File Test</title>
<!-- Includes -->
<script src="/dist/jquery.js"></script>
<script src="../dist/jquery.js"></script>
<style>
.error { color: red; }
.success { color: green; }
@@ -15,7 +15,7 @@
<style>
div { margin-top: 10px; }
</style>
<script src="/dist/jquery.js"></script>
<script src="../dist/jquery.js"></script>
<script type="text/javascript">
$('button').live('click', function () {
$.ajax({
@@ -14,7 +14,7 @@
#output { background-color: green }
#expectedOutput { background-color: green }
</style>
<script src="/dist/jquery.js"></script>
<script src="../dist/jquery.js"></script>

<!-- Load the script loader that uses
jQuery.readyWait -->

2 comments on commit 37ffb29

@jaubourg

This comment has been minimized.

Copy link
Member

@jaubourg jaubourg replied Jun 4, 2012

So we gave up testing with the minified version? So sad.

@rwaldron

This comment has been minimized.

Copy link
Member

@rwaldron rwaldron replied Jun 4, 2012

I wouldn't say "given up", just starting fresh ;)

Please sign in to comment.
You can’t perform that action at this time.