~kubuntu-members/korundum/4.11

« back to all changes in this revision

Viewing changes to qttest/examples/myfirsttest.rb

  • Committer: Ian Monroe
  • Date: 2010-11-21 15:55:01 UTC
  • Revision ID: git-v1:c37670e4e3c59f5eb2ba112f5341a5e706217f6f
Split up Smoke into Qt and KDE directories. 
Move libsmoke stuff into the generator directory
Split up Ruby into qtruby and korundum directories

svn path=/trunk/KDE/kdebindings/ruby/; revision=1199320

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/ruby
2
 
 
3
 
require 'Qt4'
4
 
require 'qttest'
5
 
 
6
 
class MyFirstTest < Qt::Object
7
 
  private_slots :initTestCase, 
8
 
                :myFirstTest, :mySecondTest,
9
 
                :cleanupTestCase
10
 
 
11
 
  def initTestCase()
12
 
    qDebug("called before everything else")
13
 
  end 
14
 
  
15
 
  def myFirstTest()
16
 
    QVERIFY('1 == 1')
17
 
    qDebug("myFirstTest()")
18
 
  end
19
 
 
20
 
  def mySecondTest()
21
 
    QVERIFY('1 != 2')
22
 
    qDebug("mySecondTest()")
23
 
  end
24
 
 
25
 
  def cleanupTestCase()
26
 
    qDebug("called after myFirstTest and mySecondTest")
27
 
  end
28
 
end
29
 
 
30
 
Qt::Test.qExec(MyFirstTest.new, ARGV)