Sha256: fdfbeb97334c5e9127d1020a284008a14a7704adb5fa2c23b6f5a1d763c778c6

Contents?: true

Size: 779 Bytes

Versions: 38

Compression:

Stored size: 779 Bytes

Contents

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

include Fox

class DummyCommand < 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
  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

38 entries across 38 versions & 1 rubygems

Version Path
fxruby-1.6.20-x86-mingw32 test/TC_FXUndoList.rb
fxruby-1.6.20-x86-linux test/TC_FXUndoList.rb
fxruby-1.6.20 test/TC_FXUndoList.rb
fxruby-1.6.20-universal-darwin-10 test/TC_FXUndoList.rb
fxruby-1.6.19-x86-mingw32 tests/TC_FXUndoList.rb
fxruby-1.6.14-mswin32 tests/TC_FXUndoList.rb
fxruby-1.6.13-mswin32 tests/TC_FXUndoList.rb
fxruby-1.6.0 tests/TC_FXUndoList.rb
fxruby-1.6.1 tests/TC_FXUndoList.rb
fxruby-1.6.10 tests/TC_FXUndoList.rb
fxruby-1.6.11 tests/TC_FXUndoList.rb
fxruby-1.6.12 tests/TC_FXUndoList.rb
fxruby-1.6.13 tests/TC_FXUndoList.rb
fxruby-1.6.14-universal-darwin-9 tests/TC_FXUndoList.rb
fxruby-1.6.15-universal-darwin-9 tests/TC_FXUndoList.rb
fxruby-1.6.14 tests/TC_FXUndoList.rb
fxruby-1.6.15-x86-mswin32-60 tests/TC_FXUndoList.rb
fxruby-1.6.15 tests/TC_FXUndoList.rb
fxruby-1.6.16-universal-darwin-9 tests/TC_FXUndoList.rb
fxruby-1.6.16-x86-mswin32-60 tests/TC_FXUndoList.rb