       expect(@p.plot_canvas.document).to.be.equal doc
 
     describe "get_constrained_variables", ->
+
       beforeEach ->
         plot_canvas = @p.plot_canvas
         # Visual alignment is dominated by the plot_canvas so a number of the

      # TODO(bird) Write this test.
      null



  describe "Plot.Model", ->

    it "should have _horizontal set to true by default", ->
      expect(@p._horizontal).to.true

    it "should have a PlotCanvas set on initialization with all the options passed to Plot", ->
      expect(@p.plot_canvas).to.exist
      expect(@p.plot_canvas.x_range).to.be.deep.equal @x_range
      expect(@p.plot_canvas.y_range).to.be.deep.equal @y_range

    it "should attach document to plot canvas when document is attached to it", ->
      expect(@p.plot_canvas.document).to.be.null

    @x_range = new Range1d({start: 0, end:10})
    @y_range = new Range1d({start: 0, end: 10})
    toolbar = new Toolbar()
    @p = new Plot({x_range: @x_range, y_range: @y_range, toolbar: toolbar, title: null})

  describe "Plot.View", ->
    afterEach ->
