dojo.gfx example. This is a dojo.gfx example.
symbol 'dojo.gfx' is not defined after loading '__package__.js'
<script language="JavaScript" type="text/javascript" src="./framework/app/jsUnitCore.js"> </script> <script language="JavaScript" type="text/javascript"> function testAssert() { assert("true should be true", true); assert(true); } </script>
+ e:\tests + framework <- ここに testRunner.html など JsUnit の全てのファイル/フォルダを入れる - tests.html <- テストコードの一覧を持つ - xxxTest.html <- テストコード
<script language="JavaScript" type="text/javascript" src="./framework/app/jsUnitCore.js"> </script> <script language="JavaScript" type="text/javascript"> function suite(){ var newsuite = new top.jsUnitTestSuite(); newsuite.addTestPage("../xxxTest.html"); return newsuite; } </script>
i += 1
Inc(i);
def test_should_reset_password users(:quentin).update_attributes(:password => 'new password', :password_confirmation => 'new password') assert_equal users(:quentin), User.authenticate('quentin', 'new password') end
def test_should_reset_password users(:quentin).update_attributes(:login => 'quentin', :password => 'new password', :password_confirmation => 'new password') assert_equal users(:quentin), User.authenticate('quentin', 'new password') end
def test_should_reset_password users(:quentin).update_attributes(:password => 'new password', :password_confirmation => 'new password') assert_equal users(:quentin), User.authenticate(users(:quentin).login, 'new password') end
script = <<-EOS # ActiveRecord を操作する @metaelement = Metaelement.new @metaelement.name = "execute_eval" @metaelement.save EOS Thread.start { # $SAFE = 4 <- このコメントアウトを外すと SecurityError 例外発生 eval(script) }.join
script = <<-EOS @metaelements = Metaelement.find(:all) EOS Thread.start { $SAFE = 4 eval(script) }.join
script = <<-EOS Metaelement.connection # DB のコネクションを取得。 EOS Thread.start { $SAFE = 4 eval(script) }.join
チェンジビジョンの決算を迎える訳ですが、JUDE/Professional の有償版販売目標である、6千本を、もう少しで達成します。
[code: def test_hoge
@dummy_object = Object.new
@dummy_object.extend(HogeModule)
assert ...hogehoge...
end]
[code: def test_hoge
@new_class = Class.new
@dummy_object = @new_class.allocate
@dummy_object.extend(HogeModule)
assert ...hogehoge...
end]
[code: class Dummy
include HogeModule
end
def test_hoge
@dummy_object = Dummy.new
assert ...hogehoge...
end]