aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/testIframe.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/testIframe.js')
-rw-r--r--tests/lib/testIframe.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/lib/testIframe.js b/tests/lib/testIframe.js
new file mode 100644
index 000000000..4db56833c
--- /dev/null
+++ b/tests/lib/testIframe.js
@@ -0,0 +1,7 @@
+window.startIframeTest = function() {
+ var args = Array.prototype.slice.call( arguments );
+
+ // Note: jQuery may be undefined if page did not load it
+ args.unshift( window.jQuery, window, document );
+ window.parent.iframeCallback.apply( null, args );
+};