@@ -116,8 +116,13 @@ describe('ZipArchiveEntry', function() {
116116 entry . time = 1109607251 ;
117117 assert . typeOf ( entry . getTime ( ) , 'Date' ) ;
118118 } ) ;
119+ } ) ;
119120
120- // add test for raw
121+ describe ( '#getTimeDos' , function ( ) {
122+ it ( 'should return a number' , function ( ) {
123+ entry . time = 1109607251 ;
124+ assert . typeOf ( entry . getTimeDos ( ) , 'number' ) ;
125+ } ) ;
121126 } ) ;
122127
123128 describe ( '#getUnixMode' , function ( ) {
@@ -141,6 +146,11 @@ describe('ZipArchiveEntry', function() {
141146 entry . setComment ( 'file comment' ) ;
142147 assert . propertyVal ( entry , 'comment' , 'file comment' ) ;
143148 } ) ;
149+
150+ it ( 'should set utf8 bit when receiving strings byte count != string length' , function ( ) {
151+ entry . setComment ( 'ÀÁÂÃÄÇÈÉÊËÌÍÎÏÑÒÓÔÕÖÙÚÛÜÝàáâãäçèéêëìíîïñòóôõöùúûüýÿ' ) ;
152+ assert . ok ( entry . getGeneralPurposeBit ( ) . usesUTF8ForNames ( ) ) ;
153+ } ) ;
144154 } ) ;
145155
146156 describe ( '#setCompressedSize' , function ( ) {
@@ -203,6 +213,11 @@ describe('ZipArchiveEntry', function() {
203213 entry . setName ( '\\windows\\file.txt' ) ;
204214 assert . propertyVal ( entry , 'name' , 'windows/file.txt' ) ;
205215 } ) ;
216+
217+ it ( 'should set utf8 bit when receiving strings byte count != string length' , function ( ) {
218+ entry . setName ( 'ÀÁÂÃÄÇÈÉÊËÌÍÎÏÑÒÓÔÕÖÙÚÛÜÝàáâãäçèéêëìíîïñòóôõöùúûüýÿ.txt' ) ;
219+ assert . ok ( entry . getGeneralPurposeBit ( ) . usesUTF8ForNames ( ) ) ;
220+ } ) ;
206221 } ) ;
207222
208223 describe ( '#setPlatform' , function ( ) {
0 commit comments