first commit
This commit is contained in:
45
iframe-resizer-master/test/_init.html
Executable file
45
iframe-resizer-master/test/_init.html
Executable file
@ -0,0 +1,45 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>QUnit LoadHide</title>
|
||||
<link rel="stylesheet" href="resources/qunit.css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="qunit"></div>
|
||||
<div id="qunit-fixture">
|
||||
<div style="width:600px;">
|
||||
<iframe
|
||||
src="resources/frame.lateload.html"
|
||||
width="100%"
|
||||
scrolling="no"
|
||||
></iframe>
|
||||
</div>
|
||||
</div>
|
||||
<script src="resources/qunit.js"></script>
|
||||
<script src="resources/jquery.js"></script>
|
||||
<script src="../js/ie8.polyfils.min.js"></script>
|
||||
<script src="../js/iframeResizer.min.js"></script>
|
||||
<script>
|
||||
'use strict'
|
||||
var msgId = '[iFrameSizerTest]:'
|
||||
|
||||
asyncTest('postMessage Response', function() {
|
||||
iFrameResize({
|
||||
//log:true,
|
||||
bodyBackground: 'wheat',
|
||||
heightCalculationMethod: 'max',
|
||||
onInit: function(iframe) {
|
||||
ok(true, 'Receive init message back from iFrame.')
|
||||
ok('iFrameResizer0' === iframe.id, 'iFrame id = iFrameResizer0.')
|
||||
setTimeout(function() {
|
||||
iframe.iFrameResizer.close()
|
||||
start()
|
||||
}, 10)
|
||||
}
|
||||
})
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user