|
71 | 71 | }
|
72 | 72 | };
|
73 | 73 |
|
74 |
| - exports['oPatternType initialization'] = { |
75 |
| - 'test oPatternType initializes correctly' : function(test){ |
76 |
| - var b = new of.oPatternType('test'); |
77 |
| - test.equals(b.patternTypeLC, 'test'); |
78 |
| - test.equals(b.patternTypeUC, 'Test'); |
79 |
| - test.equals(b.patternTypeItems.length, 0); |
80 |
| - test.equals(b.patternTypeItemsIndex.length, 0); |
81 |
| - test.equals(b.patternItems.length, 0); |
82 |
| - test.equals(b.patternItemsIndex.length, 0); |
83 |
| - test.done(); |
84 |
| - }, |
85 |
| - 'test oPatternType capitalizes patternTypeUC' : function(test){ |
86 |
| - var b = new of.oPatternType('page-templates'); |
87 |
| - test.equals(b.patternTypeLC, 'page-templates'); |
88 |
| - test.equals(b.patternTypeUC, 'Page Templates'); |
89 |
| - test.done(); |
90 |
| - } |
91 |
| - }; |
92 |
| - |
93 |
| - exports['oPatternSubType initialization'] = { |
94 |
| - 'test oPatternSubType initializes correctly' : function(test){ |
95 |
| - var ni = new of.oPatternSubType('test'); |
96 |
| - test.equals(ni.patternSubtypeLC, 'test'); |
97 |
| - test.equals(ni.patternSubtypeUC, 'Test'); |
98 |
| - test.equals(ni.patternSubtypeItems.length, 0); |
99 |
| - test.equals(ni.patternSubtypeItemsIndex.length, 0); |
100 |
| - test.done(); |
101 |
| - }, |
102 |
| - 'test oPatternSubType correctly capitalizes sectionNameUC' : function(test){ |
103 |
| - var ni = new of.oPatternSubType('global-concepts'); |
104 |
| - test.equals(ni.patternSubtypeLC, 'global-concepts'); |
105 |
| - test.equals(ni.patternSubtypeUC, 'Global Concepts'); |
106 |
| - test.done(); |
107 |
| - } |
108 |
| - }; |
109 |
| - |
110 |
| - exports['oPatternSubTypeItem initialization'] = { |
111 |
| - 'test oPatternSubTypeItem initializes correctly' : function(test){ |
112 |
| - var sni = new of.oPatternSubTypeItem('test'); |
113 |
| - test.equals(sni.patternName, 'Test'); |
114 |
| - test.equals(sni.patternPath, ''); |
115 |
| - test.equals(sni.patternPartialCode, ''); |
116 |
| - test.done(); |
117 |
| - }, |
118 |
| - 'test oPatternSubTypeItem capitalizes patternName' : function(test){ |
119 |
| - var sni = new of.oPatternSubTypeItem('nav button'); |
120 |
| - test.equals(sni.patternName, 'Nav Button'); |
121 |
| - test.done(); |
122 |
| - } |
123 |
| - }; |
124 |
| - |
125 | 74 | }());
|
0 commit comments