Skip to content

Commit

Permalink
beginnings of bigwig unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuels committed Jul 5, 2012
1 parent 9a5ca40 commit f110366
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/JBrowse/Model/XHRBlob.js
Expand Up @@ -46,7 +46,7 @@ var XHRBlob = declare( FileBlob,
} else {
ne = ne || l - 1;
}
return new JBrowse.Model.XHRBlob(this.url, ns, ne, this.opts);
return new XHRBlob(this.url, ns, ne, this.opts);
},

fetch: function(callback, attempt, truncatedLength) {
Expand Down
2 changes: 1 addition & 1 deletion src/JBrowse/Store/BigWig.js
Expand Up @@ -2,7 +2,7 @@ define( [
'dojo/_base/declare',
'JBrowse/Store/BigWig/Window'
],
function( declare, Window, FileBlob, XHRBlob ) {
function( declare, Window ) {
return declare( null,
/**
* @lends JBrowse.Store.BigWig
Expand Down
1 change: 1 addition & 0 deletions tests/data/SL2.40_all_rna_seq.v1.bigwig
1 change: 1 addition & 0 deletions tests/js_tests/index.html
Expand Up @@ -15,6 +15,7 @@
<!-- include spec files here... -->
<script type="text/javascript" src="spec/LazyArray.spec.js"></script>
<script type="text/javascript" src="spec/FeatureLayout.spec.js"></script>
<script type="text/javascript" src="spec/BigWig.spec.js"></script>

<script type="text/javascript">
(function() {
Expand Down
9 changes: 9 additions & 0 deletions tests/js_tests/spec/BigWig.spec.js
@@ -0,0 +1,9 @@
require(['JBrowse/Store/BigWig','JBrowse/Model/XHRBlob'], function( BigWig, XHRBlob ) {
describe( 'BigWig with tomato RNAseq coverage', function() {
var b = new BigWig({
blob: new XHRBlob('../data/SL2.40_all_rna_seq.v1.bigwig')
});

it('constructs', function(){ expect(b).toBeTruthy(); });
});
});

0 comments on commit f110366

Please sign in to comment.