403Webshell
Server IP : 104.21.80.248  /  Your IP : 172.71.28.155
Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30
System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586
User : SYSTEM ( 0)
PHP Version : 5.6.30
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  E:/Inetpub/www/news/edu2018/bower_components/morris.js/spec/lib/grid/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : E:/Inetpub/www/news/edu2018/bower_components/morris.js/spec/lib/grid/auto_grid_lines_spec.coffee
describe 'Morris.Grid#autoGridLines', ->

  beforeEach ->
    @subject = Morris.Grid.prototype.autoGridLines

  it 'should draw at fixed intervals', ->
    @subject(0, 4, 5).should.deep.equal [0, 1, 2, 3, 4]
    @subject(0, 400, 5).should.deep.equal [0, 100, 200, 300, 400]

  it 'should pick intervals that show significant numbers', ->
    @subject(102, 499, 5).should.deep.equal [100, 200, 300, 400, 500]

  it 'should draw zero when it falls within [ymin..ymax]', ->
    @subject(-100, 300, 5).should.deep.equal [-100, 0, 100, 200, 300]
    @subject(-50, 350, 5).should.deep.equal [-125, 0, 125, 250, 375]
    @subject(-400, 400, 5).should.deep.equal [-400, -200, 0, 200, 400]
    @subject(100, 500, 5).should.deep.equal [100, 200, 300, 400, 500]
    @subject(-500, -100, 5).should.deep.equal [-500, -400, -300, -200, -100]

  it 'should generate decimal labels to 2 significant figures', ->
    @subject(0, 1, 5).should.deep.equal [0, 0.25, 0.5, 0.75, 1]
    @subject(0.1, 0.5, 5).should.deep.equal [0.1, 0.2, 0.3, 0.4, 0.5]

  it 'should use integer intervals for intervals larger than 1', ->
    @subject(0, 9, 5).should.deep.equal [0, 3, 6, 9, 12]

Youez - 2016 - github.com/yon3zu
LinuXploit