aboutsummaryrefslogtreecommitdiffstats
path: root/test/delegatetest.html
diff options
context:
space:
mode:
authorMike Sherov <mike.sherov@gmail.com>2012-01-11 21:35:13 -0500
committerDave Methvin <dave.methvin@gmail.com>2012-01-11 21:35:13 -0500
commitdd900460ac6f77be71ceb878bc2cd1465397dc60 (patch)
treea33fe72fa0be5886c5689d7106def00b539b2ae9 /test/delegatetest.html
parentf724bc6c921378b82d9d6fa17329b6451fbb7a51 (diff)
downloadjquery-dd900460ac6f77be71ceb878bc2cd1465397dc60.tar.gz
jquery-dd900460ac6f77be71ceb878bc2cd1465397dc60.zip
Fix #10902. DRY up the ways to include src files in tests.
Diffstat (limited to 'test/delegatetest.html')
-rw-r--r--test/delegatetest.html13
1 files changed, 2 insertions, 11 deletions
diff --git a/test/delegatetest.html b/test/delegatetest.html
index 5bf1c305a..012d27c91 100644
--- a/test/delegatetest.html
+++ b/test/delegatetest.html
@@ -2,15 +2,7 @@
<html>
<head>
<title>Event Delegation Tests</title>
-<script>
-var version = location.search && location.search.substr(1);
-if ( version ) {
- version = "http://code.jquery.com/jquery-"+version+".js";
-} else {
- version = "../dist/jquery.js";
-}
-document.write('<script src="'+version+'"><'+'/script>');
-</script>
+<script src="data/include_js.php"></script>
<style>
table {
border-collapse: collapse;
@@ -31,7 +23,7 @@ th, td {
</style>
</head>
<body>
-<h2>Delegate Tests (<span id="version">BAD FILE IN URL</span>, <span id="fileversion">x</span>)</h2>
+<h2>Delegate Tests (<span id="fileversion">x</span>)</h2>
<table id="changes">
<thead>
@@ -133,7 +125,6 @@ th, td {
<script type='text/javascript'>
-$("#version").text(version);
$("#fileversion").text($.fn.jquery);
// Try an auto-submit, it should only fire once