Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 9ef2b7bcb8
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (13 sloc) 0.544 kb
from pyjamas.ui.RootPanel import RootPanel
from pyjamas.ui.Label import Label
from UnitTest import UnitTest1
from __pyjamas__ import doc
#TODO: see issue 768
class LabelTest(UnitTest1):
def testLabelAdd(self):
self.l = Label("Hello World (label)", StyleName='teststyle')
RootPanel('tests').add(self.l)
self.write_test_output('addlabel')
if not RootPanel('tests').remove(self.l):
self.fail("Label added but apparently not owned by RootPanel()")
self.write_test_output('removelabel')
Jump to Line
Something went wrong with that request. Please try again.