Sha256: 211ef099b0baca75ce1278ed35e3ae5abd1cefb23a952656317511d9f3199a33

Contents?: true

Size: 786 Bytes

Versions: 104

Compression:

Stored size: 786 Bytes

Contents

require 'test/unit'
require 'fox16'
require 'fox16/undolist'

class DummyCommand < Fox::FXCommand
  def undo ; end
  def redo ; end
  def undoName
    "My Undo Name"
  end
  def redoName
    "My Redo Name"
  end
end

class TC_FXUndoList < Test::Unit::TestCase
  include Fox

  def test_cut_with_nil_marker
    undoList = FXUndoList.new
    assert_nothing_raised {
      undoList.cut
    }
  end

  def test_undoName
    undoList = FXUndoList.new
    assert_nil(undoList.undoName)
    c = DummyCommand.new
    undoList.add(c)
    assert_equal(c.undoName, undoList.undoName)
  end

  def test_redoName
    undoList = FXUndoList.new
    assert_nil(undoList.redoName)
    c = DummyCommand.new
    undoList.add(c)
    undoList.undo
    assert_equal(c.redoName, undoList.redoName)
  end
end

Version data entries

104 entries across 104 versions & 2 rubygems

Version Path
fxruby-1.6.32.pre2-x86-mingw32 test/TC_FXUndoList.rb
fxruby-1.6.32.pre2 test/TC_FXUndoList.rb
fxruby-1.6.32.pre1 test/TC_FXUndoList.rb
fxruby-1.6.32.pre1-x86-mingw32 test/TC_FXUndoList.rb
fxruby-1.6.32.pre1-x64-mingw32 test/TC_FXUndoList.rb
fxruby-1.6.31-x64-mingw32 test/TC_FXUndoList.rb
fxruby-1.6.31-x86-mingw32 test/TC_FXUndoList.rb
fxruby-1.6.31 test/TC_FXUndoList.rb
fxruby-1.6.30-x86-mingw32 test/TC_FXUndoList.rb
fxruby-1.6.30-x64-mingw32 test/TC_FXUndoList.rb
fxruby-1.6.30 test/TC_FXUndoList.rb
fxruby-1.6.29-x86-mingw32 test/TC_FXUndoList.rb
fxruby-1.6.29-x64-mingw32 test/TC_FXUndoList.rb
fxruby-1.6.29 test/TC_FXUndoList.rb
fxruby-1.6.28-x86-mingw32 test/TC_FXUndoList.rb
fxruby-1.6.28-x64-mingw32 test/TC_FXUndoList.rb
fxruby-1.6.28 test/TC_FXUndoList.rb
fxruby-1.6.27-x86-mingw32 test/TC_FXUndoList.rb
fxruby-1.6.27-x64-mingw32 test/TC_FXUndoList.rb
fxruby-1.6.27 test/TC_FXUndoList.rb