aboutsummaryrefslogtreecommitdiffstats
path: root/test/jquery.js
diff options
context:
space:
mode:
authorRichard Gibson <richard.gibson@gmail.com>2013-02-08 00:20:33 -0500
committerRichard Gibson <richard.gibson@gmail.com>2013-02-08 00:20:33 -0500
commit67a2e4eaac98cee79a02a0a45e4826a7958d4b75 (patch)
treecc790889e055ad5c6d5cd82437dae765308ab95f /test/jquery.js
parenta8518c3bc4e1a8755c2d3a7be624b0e86be1070b (diff)
downloadjquery-67a2e4eaac98cee79a02a0a45e4826a7958d4b75.tar.gz
jquery-67a2e4eaac98cee79a02a0a45e4826a7958d4b75.zip
Ref #13316: Sync all test documents on full vs. minified source.
Diffstat (limited to 'test/jquery.js')
-rw-r--r--test/jquery.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/jquery.js b/test/jquery.js
new file mode 100644
index 000000000..93d1095cd
--- /dev/null
+++ b/test/jquery.js
@@ -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>" );