js-fixtures icon indicating copy to clipboard operation
js-fixtures copied to clipboard

Load html fixtures for your in-browser tests/specs

Results 12 js-fixtures issues
Sort by recently updated
recently updated
newest added

I don't know why the iframe is by default fully opaque, but this PR makes the opaqueness controllable by the user.

I am running a node test that is loading some fixtures. I have version 1.5.3 of js-fixtures. Version 3.6.0 of node. I have a problem running npm test, the code...

Needed this to work in IE8, fix was fairly simple

For traversal etc. I think, it would be handy to have the ability to load content as DOM. Therefore, I extended your API to realise that. PR coming soon.

The only caveat I can see so far is after parsing the string as DOM, that _sometimes_ the browser complains about not being able to read cookie property of document....

I had a problem yesterday whereby my existing Jasmine-jQuery fixtures were not accessible to my tests; I discovered this was because they were loading inside the iframe. I have modified...

Using karma + sinon-chai with what I think are appropriate config parameters: ``` chai.should(); fixtures.path = 'base'; console.log('read'); body = fixtures.read('index2.html'); console.log('set'); fixtures.set(body); $$ = document.getElementById(fixtures.containerId).contentDocument.documentElement; console.log("CONTENT", $$); console.log('load'); fixtures.load('index2.html');...

Setting up mocha in the browser is a bit of a pain in general. It'd be a good idea to include some example scaffolding. It'd also be nice to add...

enhancement

javascript fixtures should be loaded in a different way from html fixtures. That way, browsers can correctly execute javascript that was injected through the iframe body. Without this enhancement, subsequent...

enhancement