Custom temp directory (#240)
* Add a tempDir option that defaults to the original value * Add favicon to context to join temp path in js * Add a test for the custom temp directory * Add tempDir to options docs and examples * Rebuild readme with doc changesmaster
parent
7f678cbbf9
commit
a3fd4866ce
@ -0,0 +1,20 @@
|
|||||||
|
describe("custom temp directory test", function() {
|
||||||
|
|
||||||
|
it("should have loaded from a custom temp directory", function() {
|
||||||
|
expect(working).toBeTruthy();
|
||||||
|
|
||||||
|
var links = document.getElementsByTagName('link');
|
||||||
|
expect(links[0].href).toEqual(jasmine.stringMatching('.custom/jasmine_favicon.png'));
|
||||||
|
expect(links[1].href).toEqual(jasmine.stringMatching('.custom/jasmine.css'));
|
||||||
|
|
||||||
|
var scripts = document.getElementsByTagName('script');
|
||||||
|
expect(scripts[0].src).toEqual(jasmine.stringMatching('.custom/jasmine.js'));
|
||||||
|
expect(scripts[1].src).toEqual(jasmine.stringMatching('.custom/jasmine-html.js'));
|
||||||
|
expect(scripts[2].src).toEqual(jasmine.stringMatching('.custom/json2.js'));
|
||||||
|
expect(scripts[3].src).toEqual(jasmine.stringMatching('.custom/boot.js'));
|
||||||
|
expect(scripts[4].src).toEqual(jasmine.stringMatching('test/fixtures/custom-temp-dir/src/test.js'));
|
||||||
|
expect(scripts[5].src).toEqual(jasmine.stringMatching('test/fixtures/custom-temp-dir/spec/test-spec.js'));
|
||||||
|
expect(scripts[6].src).toEqual(jasmine.stringMatching('.custom/reporter.js'));
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
@ -0,0 +1 @@
|
|||||||
|
working = true
|
Loading…
Reference in new issue