@@ -194,7 +194,7 @@ var tests = [{
194194 fixture : ' \\"word\\\'\\ \\\t ' ,
195195 expected : [
196196 { type : 'space' , sourceIndex : 0 , value : ' ' } ,
197- { type : 'word' , sourceIndex : 1 , value : '\\"word\\\'\\ \\\t' } ,
197+ { type : 'word' , sourceIndex : 1 , value : '\\"word\\\'\\ \\\t' } ,
198198 { type : 'space' , sourceIndex : 13 , value : ' ' }
199199 ]
200200} , {
@@ -206,7 +206,7 @@ var tests = [{
206206 { type : 'word' , sourceIndex : 5 , value : 'italic' } ,
207207 { type : 'space' , sourceIndex : 11 , value : ' ' } ,
208208 { type : 'word' , sourceIndex : 12 , value : '12px' } ,
209- { type : 'div' , sourceIndex : 16 , value : '/' , before : ' \t ' , after : '' } ,
209+ { type : 'div' , sourceIndex : 16 , value : '/' , before : ' \t ' , after : '' } ,
210210 { type : 'word' , sourceIndex : 20 , value : '3' } ,
211211 { type : 'space' , sourceIndex : 21 , value : ' ' } ,
212212 { type : 'string' , sourceIndex : 22 , value : 'Open Sans' , quote : '\'' } ,
@@ -215,7 +215,7 @@ var tests = [{
215215 { type : 'div' , sourceIndex : 40 , value : ',' , before : '' , after : ' ' } ,
216216 { type : 'string' , sourceIndex : 42 , value : 'Helvetica Neue' , quote : '"' } ,
217217 { type : 'div' , sourceIndex : 58 , value : ',' , before : '' , after : ' ' } ,
218- { type : 'word' , sourceIndex : 60 , value : 'sans-serif' } ,
218+ { type : 'word' , sourceIndex : 60 , value : 'sans-serif' }
219219 ]
220220} , {
221221 message : 'should correctly proceess color value' ,
@@ -226,7 +226,7 @@ var tests = [{
226226 { type : 'div' , sourceIndex : 8 , value : ',' , before : '' , after : ' ' } ,
227227 { type : 'word' , sourceIndex : 10 , value : '439' } ,
228228 { type : 'div' , sourceIndex : 13 , value : ',' , before : ' ' , after : ' ' } ,
229- { type : 'word' , sourceIndex : 16 , value : '29' } ,
229+ { type : 'word' , sourceIndex : 16 , value : '29' }
230230 ] }
231231 ]
232232} , {
@@ -260,7 +260,7 @@ var tests = [{
260260 message : 'should correctly process nested calc functions' ,
261261 fixture : 'calc(((768px - 100vw) / 2) - 15px)' ,
262262 expected : [
263- { type : 'function' , sourceIndex : 0 , value : 'calc' , before : '' , after : '' , nodes : [
263+ { type : 'function' , sourceIndex : 0 , value : 'calc' , before : '' , after : '' , nodes : [
264264 { type : 'function' , sourceIndex : 5 , value : '' , before : '' , after : '' , nodes : [
265265 { type : 'function' , sourceIndex : 6 , value : '' , before : '' , after : '' , nodes : [
266266 { type : 'word' , sourceIndex : 7 , value : '768px' } ,
@@ -315,7 +315,7 @@ var tests = [{
315315 { type : 'div' , sourceIndex : 12 , value : ',' , before : '' , after : ' ' } ,
316316 { type : 'function' , sourceIndex : 14 , value : 'fn3' , before : '' , after : '' , nodes : [
317317 { type : 'word' , sourceIndex : 18 , value : '.2' }
318- ] } ,
318+ ] }
319319 ] } ,
320320 { type : 'div' , sourceIndex : 22 , value : ',' , before : '' , after : ' ' } ,
321321 { type : 'function' , sourceIndex : 24 , value : 'fn4' , before : '' , after : '' , nodes : [
@@ -324,7 +324,7 @@ var tests = [{
324324 { type : 'div' , sourceIndex : 35 , value : ',' , before : '' , after : '' } ,
325325 { type : 'word' , sourceIndex : 36 , value : '.2' }
326326 ] } ,
327- { type : 'div' , sourceIndex : 39 , value : ',' , before : '' , after : ' ' } ,
327+ { type : 'div' , sourceIndex : 39 , value : ',' , before : '' , after : ' ' } ,
328328 { type : 'word' , sourceIndex : 41 , value : 'fn6' }
329329 ] }
330330 ]
@@ -381,7 +381,7 @@ var tests = [{
381381 { type : 'div' , sourceIndex : 16 , value : ',' , before : '' , after : ' ' } ,
382382 { type : 'function' , sourceIndex : 18 , value : 'url' , before : '' , after : '' , nodes : [
383383 { type : 'word' , sourceIndex : 22 , value : 'http://website.com/img.jpg' }
384- ] } ,
384+ ] }
385385 ]
386386} , {
387387 message : 'should parse empty url' ,
@@ -393,15 +393,15 @@ var tests = [{
393393 message : 'should parse comments' ,
394394 fixture : '/*before*/ 1px /*between*/ 1px /*after*/' ,
395395 expected : [
396- { type : 'comment' , sourceIndex : 0 , value : 'before' } ,
396+ { type : 'comment' , sourceIndex : 0 , value : 'before' } ,
397397 { type : 'space' , sourceIndex : 10 , value : ' ' } ,
398398 { type : 'word' , sourceIndex : 11 , value : '1px' } ,
399399 { type : 'space' , sourceIndex : 14 , value : ' ' } ,
400- { type : 'comment' , sourceIndex : 15 , value : 'between' } ,
400+ { type : 'comment' , sourceIndex : 15 , value : 'between' } ,
401401 { type : 'space' , sourceIndex : 26 , value : ' ' } ,
402402 { type : 'word' , sourceIndex : 27 , value : '1px' } ,
403403 { type : 'space' , sourceIndex : 30 , value : ' ' } ,
404- { type : 'comment' , sourceIndex : 31 , value : 'after' } ,
404+ { type : 'comment' , sourceIndex : 31 , value : 'after' }
405405 ]
406406} , {
407407 message : 'should parse comments inside functions' ,
@@ -415,44 +415,44 @@ var tests = [{
415415 { type : 'word' , sourceIndex : 12 , value : '55' } ,
416416 { type : 'div' , sourceIndex : 14 , value : ',' , before :'' , after : ' ' } ,
417417 { type : 'word' , sourceIndex : 16 , value : '0' } ,
418- { type : 'comment' , sourceIndex : 17 , value : ',.5' }
418+ { type : 'comment' , sourceIndex : 17 , value : ',.5' }
419419 ] }
420420 ]
421421} , {
422422 message : 'should parse comments at the end of url functions with quoted first argument' ,
423423 fixture : 'url( "/demo/bg.png" /*comment*/ )' ,
424424 expected : [
425425 { type : 'function' , sourceIndex : 0 , value : 'url' , before : ' ' , after : ' ' , nodes : [
426- { type : 'string' , sourceIndex : 5 , value : '/demo/bg.png' , quote :'"' } ,
426+ { type : 'string' , sourceIndex : 5 , value : '/demo/bg.png' , quote :'"' } ,
427427 { type : 'space' , sourceIndex : 19 , value : ' ' } ,
428- { type : 'comment' , sourceIndex : 20 , value : 'comment' }
428+ { type : 'comment' , sourceIndex : 20 , value : 'comment' }
429429 ] }
430430 ]
431431} , {
432432 message : 'should not parse comments at the start of url function with unquoted first argument' ,
433433 fixture : 'url( /*comment*/ /demo/bg.png )' ,
434434 expected : [
435435 { type : 'function' , sourceIndex : 0 , value : 'url' , before : ' ' , after : ' ' , nodes : [
436- { type : 'word' , sourceIndex : 5 , value : '/*comment*/ /demo/bg.png' } ,
436+ { type : 'word' , sourceIndex : 5 , value : '/*comment*/ /demo/bg.png' }
437437 ] }
438438 ]
439439} , {
440440 message : 'should not parse comments at the end of url function with unquoted first argument' ,
441441 fixture : 'url( /demo/bg.png /*comment*/ )' ,
442442 expected : [
443443 { type : 'function' , sourceIndex : 0 , value : 'url' , before : ' ' , after : ' ' , nodes : [
444- { type : 'word' , sourceIndex : 5 , value : '/demo/bg.png /*comment*/' } ,
444+ { type : 'word' , sourceIndex : 5 , value : '/demo/bg.png /*comment*/' }
445445 ] }
446446 ]
447447} , {
448448 message : 'should parse unclosed comments' ,
449449 fixture : '/*comment*/ 1px /* unclosed ' ,
450450 expected : [
451- { type : 'comment' , sourceIndex : 0 , value : 'comment' } ,
451+ { type : 'comment' , sourceIndex : 0 , value : 'comment' } ,
452452 { type : 'space' , sourceIndex : 11 , value : ' ' } ,
453453 { type : 'word' , sourceIndex : 12 , value : '1px' } ,
454454 { type : 'space' , sourceIndex : 15 , value : ' ' } ,
455- { type : 'comment' , sourceIndex : 16 , value : ' unclosed ' , unclosed :true }
455+ { type : 'comment' , sourceIndex : 16 , value : ' unclosed ' , unclosed :true }
456456
457457 ]
458458} ] ;
0 commit comments