Newer
Older
pixi.js / test / unit / pixi-v2 / core / Circle.js
@Dr. Kibtiz Dr. Kibtiz on 21 Mar 2015 582 bytes Moved old tests to pixi-v2 dir
describe('pixi/core/Circle', function () {
    'use strict';

    var expect = chai.expect;
    var Circle = PIXI.Circle;

    it('Module exists', function () {
        expect(Circle).to.be.a('function');
    });

    it('Confirm new instance', function () {
        var obj = new Circle();
        pixi_core_Circle_confirmNewCircle(obj);
    });

    it("getBounds should return Rectangle that bounds the circle", function() {
        var obj = new Circle(100, 250, 50);
        var bounds = obj.getBounds();
        pixi_core_Circle_isBoundedByRectangle(obj, bounds);
    });
});