Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: 0.8.1a
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (12 sloc) 0.521 kb
from pyjamas.ui.RootPanel import RootPanel
from pyjamas.ui.Label import Label
from UnitTest import UnitTest
from __pyjamas__ import doc
class LabelTest(UnitTest):
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.