Skip to content
This repository
Newer
Older
100644 19 lines (14 sloc) 0.583 kb
be168721 » lkcl
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')
12 RootPanel().add(self.l)
13 ht = doc().body.innerHTML
14 self.write_test_output(ht, 'addlabel')
15
16 if not RootPanel().remove(self.l):
17 self.fail("Label added but apparently not owned by RootPanel()")
18 ht = doc().body.innerHTML
19 self.write_test_output(ht, 'removelabel')
20
Something went wrong with that request. Please try again.