<s> from pyjamas . ui . RootPanel import RootPanel <EOL> from pyjamas . ui . Label import Label <EOL> from UnitTest import UnitTest1 <EOL> from __pyjamas__ import doc <EOL> class LabelTest ( UnitTest1 ) : <EOL> def testLabelAdd ( self ) : <EOL> self . l = Label ( "<STR_LIT>" , StyleName = '<STR_LIT>' ) <EOL> RootPanel ( '<STR_LIT>' ) . add ( self . l ) <EOL> self . write_test_output ( '<STR_LIT>' ) <EOL> if not RootPanel ( '<STR_LIT>' ) . remove ( self . l ) : <EOL> self . fail ( "<STR_LIT>" ) <EOL> self . write_test_output ( '<STR_LIT>' ) </s>
