 Row = require '../lib/row'
 Cell = require '../lib/cell'
 
+stylesheetPath = path.resolve __dirname, '..', 'stylesheets', 'table-edit.less'
+stylesheet = atom.themes.loadStylesheet(stylesheetPath)
+
 describe 'TableView', ->
-  [tableView, table, nextAnimationFrame, noAnimationFrame, requestAnimationFrameSafe, styleNode] = []
+  [tableView, table, nextAnimationFrame, noAnimationFrame, requestAnimationFrameSafe, styleNode, row] = []
 
   beforeEach ->
     spyOn(window, "setInterval").andCallFake window.fakeSetInterval

      table.addRow ["row#{i}", Math.random() * 100]

    tableView = new TableView(table)
    tableView.height 200
    tableView.setRowHeight 20
    tableView.setRowOverdraw 10

    styleNode = $('body').append("""
    <style>
      .table-edit {
        position: relative;
      }

      .scroll-view {
        position: absolute;
        overflow: auto;
        top: 27px;
        bottom: 0;
        left: 0;
        right: 0;
      }

      .table-edit-content {
        position: relative;
      }

      .table-edit-row {
        position: absolute;
      }
    </style>
    """).find('style')

    $('body').append(tableView)


{$} = require 'atom'

path = require 'path'

Table = require '../lib/table'
TableView = require '../lib/table-view'
