Skip to content
This repository
Newer
Older
100644 19 lines (12 sloc) 0.521 kb
be168721 »
2009-11-08 add uitest
1 from pyjamas.ui.RootPanel import RootPanel
2 from pyjamas.ui.Label import Label
3
4 from UnitTest import UnitTest
5
6 from __pyjamas__ import doc
7
8 class LabelTest(UnitTest):
9
10 def testLabelAdd(self):
11 self.l = Label("Hello World (label)", StyleName='teststyle')
c66b15d4 »
2009-11-08 use a div to put tests in
12 RootPanel('tests').add(self.l)
13 self.write_test_output('addlabel')
be168721 »
2009-11-08 add uitest
14
c66b15d4 »
2009-11-08 use a div to put tests in
15 if not RootPanel('tests').remove(self.l):
be168721 »
2009-11-08 add uitest
16 self.fail("Label added but apparently not owned by RootPanel()")
c66b15d4 »
2009-11-08 use a div to put tests in
17 self.write_test_output('removelabel')
be168721 »
2009-11-08 add uitest
18
Something went wrong with that request. Please try again.