2023-04-25 13:25:59 +02:00

39 lines
789 B
JavaScript
Executable File

/* jshint undef: false, unused: true */
'use strict'
define(['iframeResizer'], function(iFrameResize) {
describe('iFrame init(CSS Selector)', function() {
var iframe
beforeAll(function(done) {
loadIFrame('iframe600.html')
iframe = iFrameResize(
{
log: LOG,
minHeight: 99999,
onResized: done,
checkOrigin: [
'https://localhost',
'https://localhost',
location.href
.split('/')
.slice(0, 3)
.join('/')
]
},
'iframe'
)[0]
})
afterAll(function() {
tearDown(iframe)
})
it('should create iFrameResizer object', function() {
expect(iframe.iFrameResizer).toBeDefined()
})
})
})