21 lines
535 B
JavaScript
21 lines
535 B
JavaScript
|
|
defineSuite([
|
||
|
|
'Core/Interval'
|
||
|
|
], function(
|
||
|
|
Interval) {
|
||
|
|
'use strict';
|
||
|
|
|
||
|
|
it('constructs without arguments', function() {
|
||
|
|
var interval = new Interval();
|
||
|
|
expect(interval.start).toEqual(0.0);
|
||
|
|
expect(interval.stop).toEqual(0.0);
|
||
|
|
});
|
||
|
|
|
||
|
|
it('constructs with arguments', function() {
|
||
|
|
var start = 1.0;
|
||
|
|
var stop = 2.0;
|
||
|
|
var interval = new Interval(start, stop);
|
||
|
|
expect(interval.start).toEqual(start);
|
||
|
|
expect(interval.stop).toEqual(stop);
|
||
|
|
});
|
||
|
|
});
|