Tests: Refactor testIframe() to make it DRYer and more consistent

Ref gh-3040
Closes gh-3049
This commit is contained in:
Dave Methvin
2016-04-10 15:42:44 -04:00
parent 08d73d7f9c
commit e5ffcb0838
42 changed files with 142 additions and 110 deletions

View File

@@ -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>

View File

@@ -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>