mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Tests: Refactor testIframe() to make it DRYer and more consistent
Ref gh-3040 Closes gh-3049
This commit is contained in:
8
test/data/iframeTest.js
Normal file
8
test/data/iframeTest.js
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
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 );
|
||||
};
|
||||
Reference in New Issue
Block a user