        x_range: new Range1d({start: 0, end: 1})
        y_range: new Range1d({start: 0, end: 1})
     })
-
     @plot_view = new @plot.default_view({model: @plot, parent: null})
+    @plot_canvas_view = new @plot.plot_canvas.default_view({model: @plot.plot_canvas, parent: @plot_view})
 
     @node_source = new ColumnDataSource({
       data: {

      parent: @plot_canvas_view
    })

  describe "NodesOnly", ->

    afterEach ->
      @gv.node_view.glyph.hit_test.restore()

    beforeEach ->
      @stub = sinon.stub(@gv.node_view.glyph, "hit_test")

    describe "do_selection method", ->


{Plot} = utils.require("models/plots/plot")
{Range1d} = utils.require("models/ranges/range1d")

{Circle} = utils.require("models/glyphs/circle")
{MultiLine} = utils.require("models/glyphs/multi_line")
{NodesOnly, NodesAndLinkedEdges} = utils.require("models/graphs/graph_hit_test_policy")
{LayoutProvider} = utils.require("models/graphs/layout_provider")
{GlyphRenderer} = utils.require("models/renderers/glyph_renderer")
{GraphRenderer} = utils.require("models/renderers/graph_renderer")
{ColumnDataSource} = utils.require("models/sources/column_data_source")


describe "GraphHitTestPolicy", ->

  afterEach ->
    utils.unstub_canvas()
    @gv.node_view.glyph.hit_test.restore()

  beforeEach ->
    utils.stub_canvas()
