!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/queuepro/node_modules/svg.js/spec/spec/   drwxrwxr-x
Free 13.16 GB of 57.97 GB (22.7%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     point.js (3.71 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
describe('Point', function() {
  var point

  describe('initialization', function() {

    describe('without a source', function() {

      beforeEach(function() {
        point = new SVG.Point
      })

      it('creates a new point with default values', function() {
        expect(point.x).toBe(0)
        expect(point.y).toBe(0)
      })

    })

    describe('with x and y given', function() {
      it('creates a point with given values', function() {
        var point = new SVG.Point(2,4)

        expect(point.x).toBe(2)
        expect(point.y).toBe(4)
      })
    })

    describe('with only x given', function() {
      it('creates a point using the given value for both x and y', function() {
        var point = new SVG.Point(7)

        expect(point.x).toBe(7)
        expect(point.y).toBe(7)
      })
    })

    describe('with array given', function() {
      it('creates a point from array', function() {
        var point = new SVG.Point([2,4])

        expect(point.x).toBe(2)
        expect(point.y).toBe(4)
      })
    })

    describe('with object given', function() {
      it('creates a point from object', function() {
        var point = new SVG.Point({x:2,y:4})

        expect(point.x).toBe(2)
        expect(point.y).toBe(4)
      })
    })

    describe('with SVG.Point given', function() {
      it('creates a point from SVG.Point', function() {
        var point = new SVG.Point(new SVG.Point(2,4))

        expect(point.x).toBe(2)
        expect(point.y).toBe(4)
      })
    })

    describe('with native SVGPoint given', function() {
      it('creates a point from native SVGPoint', function() {
        var point = new SVG.Point(new SVG.Point(2,4).native())

        expect(point.x).toBe(2)
        expect(point.y).toBe(4)
      })
    })

  })

  describe('clone()', function() {
    it('returns cloned point', function() {
      var point1 = new SVG.Point(1,1)
        , point2 = point1.clone()

      expect(point1).toEqual(point2)
      expect(point1).not.toBe(point2)
    })
  })

  describe('morph()', function() {
    it('stores a given point for morphing', function() {
      var point1 = new SVG.Point(1,1)
        , point2 = new SVG.Point(2,2)

      point1.morph(point2)

      expect(point1.destination).toEqual(point2)
    })
    it('stores a clone, not the given matrix itself', function() {
      var point1 = new SVG.Point(1,1)
        , point2 = new SVG.Point(2,2)

      point1.morph(point2)

      expect(point1.destination).not.toBe(point2)
    })
    it('allow passing the point by directly passing its coordinates', function() {
      var point1 = new SVG.Point(1,1)
        , point2 = new SVG.Point(2,2)

      point1.morph(point2.x, point2.y)

      expect(point1.destination).toEqual(point2)
    })
  })

  describe('at()', function() {
    it('returns a morphed point at a given position', function() {
      var point1 = new SVG.Point(1,1)
        , point2 = new SVG.Point(2,2)
        , point3 = point1.morph(point2).at(0.5)

      expect(point3).toEqual(new SVG.Point(1.5, 1.5))
    })
    it('returns itself when no destination specified', function() {
      var point = new SVG.Point(1,1)
      expect(point.at(0.4)).toBe(point)
    })
  })

  describe('transform()', function() {
    it('returns a point transformed with given matrix', function() {
      var point = new SVG.Point(1,5)
        , matrix = new SVG.Matrix(0,0,1,0,0,1)

      expect(point.transform(matrix)).toEqual(new SVG.Point(5,1))
    })
  })

  describe('native()', function() {
    it('returns native SVGPoint', function() {
      expect(new SVG.Point().native() instanceof window.SVGPoint).toBeTruthy()
    })
  })
})

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0333 ]--