aboutsummaryrefslogtreecommitdiffstats
path: root/test/jquery.js
diff options
context:
space:
mode:
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>" );