first commit

This commit is contained in:
aschwarz
2023-04-25 13:25:59 +02:00
commit 086d1e1e9e
1774 changed files with 396049 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
/* jshint undef: false, unused: true */
'use strict'
define(['iframeResizer'], function(iFrameResize) {
describe('iFrame init(Double)', function() {
var iframe
beforeAll(function() {
loadIFrame('iframe600WithId.html')
//spyOn(console,'warn');
})
afterAll(function() {
tearDown(iframe)
})
it('should create iFrameResizer object', function() {
window.parentIFrame = {
getId: function() {
return 'getIdTest'
}
}
iframe = iFrameResize({ log: LOG }, '#doubleTest')[0]
iFrameResize({ log: LOG }, '#doubleTest')
expect(iframe.iFrameResizer).toBeDefined()
expect(console.warn).toHaveBeenCalled()
delete window.parentIFrame
})
})
})