Java Doc for StyleSheetTest.java in  » Apache-Harmony-Java-SE » javax-package » javax » swing » text » html » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Apache Harmony Java SE » javax package » javax.swing.text.html 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.swing.BasicSwingTestCase
   javax.swing.text.html.StyleSheetTest

StyleSheetTest
public class StyleSheetTest extends BasicSwingTestCase (Code)




Method Summary
protected  voidsetUp()
    
public  voidtestAddAttribute()
     Shows that StyleConstants.FontSize is converted to CSS.Attribute.FONT_SIZE.
public  voidtestAddAttributeCSSAsCSS()
     Adding an attribute stored as CSS-attribute with CSS key.
public  voidtestAddAttributeCSSAsInteger()
     Adding an attribute stored as CSS-attribute with CSS key.
public  voidtestAddAttributeCSSAsSC()
     Adding an attribute stored as CSS-attribute with StyleConstants key.
public  voidtestAddAttributeCSSAsString()
     Adding an attribute stored as CSS-attribute with CSS key.
public  voidtestAddAttributeEquals()
     Tests equals method of converter attribute set.

This shows that result of equals depends on which object is the receiver and which is the parameter.

public  voidtestAddAttributeInvalidValue01()
     Adding an attribute with CSS-key but with invalid value for that key.
public  voidtestAddAttributeInvalidValue02()
     Adding an invalid value for SC-attribute.
public  voidtestAddAttributeNoCSS()
     Shows that attribute is stored AS IS if there's no CSS equivalent to StyleConstants attribute.
public  voidtestAddAttributes()
     Shows that StyleConstants attributes are converted to corresponding CSS.Attribute ones.
public  voidtestAddAttributesCSSAsCSS()
     Adding an attribute stored as CSS-attribute with CSS key.
public  voidtestAddAttributesCSSAsSC()
     Adding an attribute stored as CSS-attribute with StyleConstants key.
public  voidtestAddCSSAttribute01()
     Adds a simple attribute to set.
public  voidtestAddCSSAttribute02()
     Adds a shorthand attribute to set, CSS.Attribute.BACKGROUND is used.
public  voidtestAddCSSAttribute03()
     Shows that equals returns false despite attribute sets contain equal values.
public  voidtestAddCSSAttributeFromHTML_AddCSS()
    
public  voidtestAddCSSAttributeFromHTML_Align()
    
public  voidtestAddCSSAttributeFromHTML_Background()
    
public  voidtestAddCSSAttributeFromHTML_Color()
    
public  voidtestCreateLargeAttributeSet()
    
public  voidtestCreateSmallAttributeSet()
    
public  voidtestGetBackground()
    
public  voidtestGetBackgroundSC()
    
public  voidtestGetBase()
    
public  voidtestGetBoxPainter()
    
public  voidtestGetBoxPainterAttributes()
    
public  voidtestGetBoxPainterAttributesBorderStyle()
    
public  voidtestGetFont()
    
public  voidtestGetFontCSSAndSCSizeAttributesMixed()
    
public  voidtestGetFontCSSSizeAttribute()
    
public  voidtestGetFontSCSizeAttribute()
    
public  voidtestGetForeground()
    
public  voidtestGetForegroundSC()
    
public  voidtestGetIndexOfSize()
    
public  voidtestGetListPainter()
    
public  voidtestGetListPainterAttributes()
    
public  voidtestGetPointSizeInt()
    
public  voidtestGetPointSizeString()
    
public  voidtestGetPointSizeStringInvalidLetter()
    
public  voidtestGetPointSizeStringInvalidMinus()
    
public  voidtestGetPointSizeStringInvalidPlus()
    
public  voidtestGetPointSizeStringRelative()
    
public  voidtestGetPointSizeStringRelativeBase()
    
public  voidtestGetPointSizeStringRelativeBaseLeftEnd()
    
public  voidtestGetPointSizeStringRelativeBaseRightEnd()
    
public  voidtestImportStyleSheet()
    
public  voidtestImportStyleSheetAddStyles()
    
public  voidtestImportStyleSheetNull()
    
public  voidtestImportStyleSheetWithImports()
    
public  voidtestLoadRules()
    
public  voidtestLoadRulesWithImports()
    
public  voidtestRemoveAttribute()
    
public  voidtestRemoveAttributesAttributeSetAttributeSet_Copy()
    
public  voidtestRemoveAttributesAttributeSetAttributeSet_CopyReversed()
    
public  voidtestRemoveAttributesAttributeSetAttributeSet_Mixed()
    
public  voidtestRemoveAttributesAttributeSetAttributeSet_MixedSameValue()
    
public  voidtestRemoveAttributesAttributeSetAttributeSet_Reversed()
    
public  voidtestRemoveAttributesAttributeSetAttributeSet_StyleConstants()
    
public  voidtestRemoveAttributesAttributeSetEnumeration_CSS()
    
public  voidtestRemoveAttributesAttributeSetEnumeration_StyleConstants()
    
public  voidtestSetBase()
    
public  voidtestSetBaseFontSizeInt()
    
public  voidtestSetBaseFontSizeString()
    
public  voidtestSetBaseFontSizeStringInvalidLetter()
    
public  voidtestSetBaseFontSizeStringInvalidMinus()
    
public  voidtestSetBaseFontSizeStringInvalidPlus()
    
public  voidtestSetBaseFontSizeStringRelativeDown()
    
public  voidtestSetBaseFontSizeStringRelativeUp()
    
public  voidtestStringToColor01()
     Tests convertion of standard colors.
public  voidtestStringToColor02()
     Tests convertion of hex strings.
public  voidtestStringToColor03()
     Tests convertion of mixed-case standard names.
public  voidtestStringToColor04()
     Tests convertion of extended list of named colors.
public  voidtestStringToColor05()
     Tests with empty string.
public  voidtestTranslateHTMLToCSS()
    



Method Detail
setUp
protected void setUp() throws Exception(Code)



testAddAttribute
public void testAddAttribute()(Code)
Shows that StyleConstants.FontSize is converted to CSS.Attribute.FONT_SIZE.



testAddAttributeCSSAsCSS
public void testAddAttributeCSSAsCSS() throws Exception(Code)
Adding an attribute stored as CSS-attribute with CSS key.



testAddAttributeCSSAsInteger
public void testAddAttributeCSSAsInteger() throws Exception(Code)
Adding an attribute stored as CSS-attribute with CSS key.



testAddAttributeCSSAsSC
public void testAddAttributeCSSAsSC() throws Exception(Code)
Adding an attribute stored as CSS-attribute with StyleConstants key.



testAddAttributeCSSAsString
public void testAddAttributeCSSAsString() throws Exception(Code)
Adding an attribute stored as CSS-attribute with CSS key.



testAddAttributeEquals
public void testAddAttributeEquals()(Code)
Tests equals method of converter attribute set.

This shows that result of equals depends on which object is the receiver and which is the parameter. Also this shows that for hash codes for almost equal objects are different.




testAddAttributeInvalidValue01
public void testAddAttributeInvalidValue01() throws Exception(Code)
Adding an attribute with CSS-key but with invalid value for that key.



testAddAttributeInvalidValue02
public void testAddAttributeInvalidValue02() throws Exception(Code)
Adding an invalid value for SC-attribute.



testAddAttributeNoCSS
public void testAddAttributeNoCSS()(Code)
Shows that attribute is stored AS IS if there's no CSS equivalent to StyleConstants attribute.



testAddAttributes
public void testAddAttributes()(Code)
Shows that StyleConstants attributes are converted to corresponding CSS.Attribute ones.



testAddAttributesCSSAsCSS
public void testAddAttributesCSSAsCSS()(Code)
Adding an attribute stored as CSS-attribute with CSS key.



testAddAttributesCSSAsSC
public void testAddAttributesCSSAsSC()(Code)
Adding an attribute stored as CSS-attribute with StyleConstants key.



testAddCSSAttribute01
public void testAddCSSAttribute01()(Code)
Adds a simple attribute to set. (CSS.Attribute.BACKGROUND_COLOR is used.)



testAddCSSAttribute02
public void testAddCSSAttribute02()(Code)
Adds a shorthand attribute to set, CSS.Attribute.BACKGROUND is used.

Checks that this shorthand property is converted to individual background-related properties.




testAddCSSAttribute03
public void testAddCSSAttribute03()(Code)
Shows that equals returns false despite attribute sets contain equal values.



testAddCSSAttributeFromHTML_AddCSS
public void testAddCSSAttributeFromHTML_AddCSS()(Code)



testAddCSSAttributeFromHTML_Align
public void testAddCSSAttributeFromHTML_Align()(Code)



testAddCSSAttributeFromHTML_Background
public void testAddCSSAttributeFromHTML_Background()(Code)



testAddCSSAttributeFromHTML_Color
public void testAddCSSAttributeFromHTML_Color()(Code)



testCreateLargeAttributeSet
public void testCreateLargeAttributeSet()(Code)



testCreateSmallAttributeSet
public void testCreateSmallAttributeSet()(Code)



testGetBackground
public void testGetBackground()(Code)



testGetBackgroundSC
public void testGetBackgroundSC()(Code)



testGetBase
public void testGetBase()(Code)



testGetBoxPainter
public void testGetBoxPainter()(Code)



testGetBoxPainterAttributes
public void testGetBoxPainterAttributes()(Code)



testGetBoxPainterAttributesBorderStyle
public void testGetBoxPainterAttributesBorderStyle()(Code)



testGetFont
public void testGetFont()(Code)



testGetFontCSSAndSCSizeAttributesMixed
public void testGetFontCSSAndSCSizeAttributesMixed()(Code)



testGetFontCSSSizeAttribute
public void testGetFontCSSSizeAttribute()(Code)



testGetFontSCSizeAttribute
public void testGetFontSCSizeAttribute()(Code)



testGetForeground
public void testGetForeground()(Code)



testGetForegroundSC
public void testGetForegroundSC()(Code)



testGetIndexOfSize
public void testGetIndexOfSize()(Code)



testGetListPainter
public void testGetListPainter()(Code)



testGetListPainterAttributes
public void testGetListPainterAttributes()(Code)



testGetPointSizeInt
public void testGetPointSizeInt()(Code)



testGetPointSizeString
public void testGetPointSizeString()(Code)



testGetPointSizeStringInvalidLetter
public void testGetPointSizeStringInvalidLetter()(Code)



testGetPointSizeStringInvalidMinus
public void testGetPointSizeStringInvalidMinus()(Code)



testGetPointSizeStringInvalidPlus
public void testGetPointSizeStringInvalidPlus()(Code)



testGetPointSizeStringRelative
public void testGetPointSizeStringRelative()(Code)



testGetPointSizeStringRelativeBase
public void testGetPointSizeStringRelativeBase()(Code)



testGetPointSizeStringRelativeBaseLeftEnd
public void testGetPointSizeStringRelativeBaseLeftEnd()(Code)



testGetPointSizeStringRelativeBaseRightEnd
public void testGetPointSizeStringRelativeBaseRightEnd()(Code)



testImportStyleSheet
public void testImportStyleSheet() throws Exception(Code)



testImportStyleSheetAddStyles
public void testImportStyleSheetAddStyles() throws Exception(Code)



testImportStyleSheetNull
public void testImportStyleSheetNull() throws Exception(Code)



testImportStyleSheetWithImports
public void testImportStyleSheetWithImports() throws Exception(Code)



testLoadRules
public void testLoadRules() throws Exception(Code)



testLoadRulesWithImports
public void testLoadRulesWithImports() throws Exception(Code)



testRemoveAttribute
public void testRemoveAttribute()(Code)



testRemoveAttributesAttributeSetAttributeSet_Copy
public void testRemoveAttributesAttributeSetAttributeSet_Copy()(Code)



testRemoveAttributesAttributeSetAttributeSet_CopyReversed
public void testRemoveAttributesAttributeSetAttributeSet_CopyReversed()(Code)



testRemoveAttributesAttributeSetAttributeSet_Mixed
public void testRemoveAttributesAttributeSetAttributeSet_Mixed()(Code)



testRemoveAttributesAttributeSetAttributeSet_MixedSameValue
public void testRemoveAttributesAttributeSetAttributeSet_MixedSameValue()(Code)



testRemoveAttributesAttributeSetAttributeSet_Reversed
public void testRemoveAttributesAttributeSetAttributeSet_Reversed()(Code)



testRemoveAttributesAttributeSetAttributeSet_StyleConstants
public void testRemoveAttributesAttributeSetAttributeSet_StyleConstants()(Code)



testRemoveAttributesAttributeSetEnumeration_CSS
public void testRemoveAttributesAttributeSetEnumeration_CSS()(Code)



testRemoveAttributesAttributeSetEnumeration_StyleConstants
public void testRemoveAttributesAttributeSetEnumeration_StyleConstants()(Code)



testSetBase
public void testSetBase() throws MalformedURLException(Code)



testSetBaseFontSizeInt
public void testSetBaseFontSizeInt()(Code)



testSetBaseFontSizeString
public void testSetBaseFontSizeString()(Code)



testSetBaseFontSizeStringInvalidLetter
public void testSetBaseFontSizeStringInvalidLetter()(Code)



testSetBaseFontSizeStringInvalidMinus
public void testSetBaseFontSizeStringInvalidMinus()(Code)



testSetBaseFontSizeStringInvalidPlus
public void testSetBaseFontSizeStringInvalidPlus()(Code)



testSetBaseFontSizeStringRelativeDown
public void testSetBaseFontSizeStringRelativeDown()(Code)



testSetBaseFontSizeStringRelativeUp
public void testSetBaseFontSizeStringRelativeUp()(Code)



testStringToColor01
public void testStringToColor01()(Code)
Tests convertion of standard colors.



testStringToColor02
public void testStringToColor02()(Code)
Tests convertion of hex strings.



testStringToColor03
public void testStringToColor03()(Code)
Tests convertion of mixed-case standard names.



testStringToColor04
public void testStringToColor04()(Code)
Tests convertion of extended list of named colors.



testStringToColor05
public void testStringToColor05()(Code)
Tests with empty string.



testTranslateHTMLToCSS
public void testTranslateHTMLToCSS()(Code)



Fields inherited from javax.swing.BasicSwingTestCase
final public static long DEFAULT_TIMEOUT_DELAY(Code)(Java Doc)
protected PropertyChangeController propertyChangeController(Code)(Java Doc)
protected static long timeoutDelay(Code)(Java Doc)

Methods inherited from javax.swing.BasicSwingTestCase
public static void assertEquals(Object[] expected, Object[] actual)(Code)(Java Doc)
protected Graphics createTestGraphics()(Code)(Java Doc)
protected Component findComponent(Container root, Class findClass, boolean exactClassMatch)(Code)(Java Doc)
protected FontMetrics getFontMetrics(Font fnt)(Code)(Java Doc)
protected FontMetrics getFontMetrics(Font fnt, int charWidth)(Code)(Java Doc)
protected FontMetrics getFontMetrics(Font fnt, int charWidth, int charHeight)(Code)(Java Doc)
protected EventListener getListener(EventListener[] listeners, Class listenerClass)(Code)(Java Doc)
protected boolean hasListener(EventListener[] listeners, Class listenerClass)(Code)(Java Doc)
public static boolean isHarmony()(Code)(Java Doc)
protected boolean isSystemWindow(Frame f)(Code)(Java Doc)
protected void rethrow(Throwable exception) throws Throwable(Code)(Java Doc)
public void runBare() throws Throwable(Code)(Java Doc)
protected Throwable runBareImpl() throws Throwable(Code)(Java Doc)
protected void runBareSuper() throws Throwable(Code)(Java Doc)
public static Object serializeObject(Object objectToWrite) throws IOException, ClassNotFoundException(Code)(Java Doc)
public void setIgnoreNotImplemented(boolean b)(Code)(Java Doc)
protected void setUp() throws Exception(Code)(Java Doc)
protected void tearDown() throws Exception(Code)(Java Doc)
protected void testExceptionalCase(ExceptionalCase ec)(Code)(Java Doc)
protected void traverseComponentTree(Component root, TraverseAction action)(Code)(Java Doc)
protected boolean waitForFocus(Component c) throws Exception(Code)(Java Doc)
protected void waitForIdle() throws Exception(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.