jasmine-dom
jasmine-dom copied to clipboard
fixtures: document.body is undefined when using Jasmine 1.2
Maybe I am doing something wrong here, but I get an error in Jasmine 1.2:
TypeError: Cannot call method 'appendChild' of null
TypeError: Cannot call method 'appendChild' of null
at Object.jasmine.Fixtures._createContainer (http://localhost/git/ol3_bartvde/test/jasmine-dom-fixtures.js:137:19)
at Object.jasmine.Fixtures.load (http://localhost/git/ol3_bartvde/test/jasmine-dom-fixtures.js:77:10)
at Object.jasmine.Fixtures._proxyCallTo (http://localhost/git/ol3_bartvde/test/jasmine-dom-fixtures.js:172:29)
at loadFixtures (http://localhost/git/ol3_bartvde/test/jasmine-dom-fixtures.js:9:25)
at null.<anonymous> (http://localhost/git/ol3_bartvde/test/spec/ol/parser/ogc/wmscapabilities_v1_1_1.test.js:6:5)
at jasmine.Env.describe (http://localhost/git/ol3_bartvde/test/jasmine-1.2.0/jasmine.js:806:21)
at describe (http://localhost/git/ol3_bartvde/test/jasmine-1.2.0/jasmine.js:590:27)
at null.<anonymous> (http://localhost/git/ol3_bartvde/test/spec/ol/parser/ogc/wmscapabilities_v1_1_1.test.js:5:3)
at jasmine.Env.describe (http://localhost/git/ol3_bartvde/test/jasmine-1.2.0/jasmine.js:806:21)
at describe (http://localhost/git/ol3_bartvde/test/jasmine-1.2.0/jasmine.js:590:27)
I’m sorry, but I’ve not kept up with Jasmine development — I’ve been out of Web dev for almost 2 years. If I can find some time, I’ll see if I can reproduce this.
hey @jeffwatkins don't worry about this, I've found another way to load (XML) fixtures