mirror of
https://github.com/jquery/jquery.git
synced 2026-02-01 15:34:56 -05:00
Tests: Refactor testIframe() to make it DRYer and more consistent
Ref gh-3040 Closes gh-3049
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<title>jQuery selector - attributes</title>
|
||||
|
||||
<script src="../../jquery.js"></script>
|
||||
|
||||
<script src="../iframeTest.js"></script>
|
||||
<script id="script1"
|
||||
defer
|
||||
async></script>
|
||||
@@ -16,9 +16,7 @@
|
||||
document.createElement('article');
|
||||
document.createElement('details');
|
||||
|
||||
jQuery( function() {
|
||||
window.parent.iframeCallback( jQuery, window, document );
|
||||
} );
|
||||
jQuery( startIframeTest );
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
<title>jQuery selector - sizzle cache</title>
|
||||
|
||||
<script src="../../jquery.js"></script>
|
||||
<script src="../iframeTest.js"></script>
|
||||
<script>
|
||||
document.write(
|
||||
"<script>var $cached = jQuery.noConflict(true);<\x2Fscript>" +
|
||||
@@ -18,9 +19,7 @@
|
||||
<a href="#" id="collision">Worlds collide</a>
|
||||
</div>
|
||||
<script>
|
||||
jQuery( function() {
|
||||
window.parent.iframeCallback( jQuery, window, document );
|
||||
} );
|
||||
jQuery( startIframeTest );
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user