Permalink
Browse files

Fix test task

  • Loading branch information...
sparanoid committed Feb 15, 2014
1 parent 5d95ac7 commit c81ebdb1b1f6a32f1e819e3fc2a2272ae734d007
Showing with 9 additions and 5 deletions.
  1. +1 −1 src/css/TokenStream.js
  2. +1 −1 tests/css/Parser.js
  3. +7 −3 tests/css/TokenStream.js
View
@@ -642,7 +642,7 @@ TokenStream.prototype = mix(new TokenStreamBase(), {
ident = this.readName(reader.read());
value += ident;
- if (/^em$|^ex$|^px$|^gd$|^rem$|^vw$|^vh$|^vm$|^ch$|^cm$|^mm$|^in$|^pt$|^pc$/i.test(ident)){
+ if (/^em$|^ex$|^px$|^gd$|^rem$|^vw$|^vh$|^vmax$|^vmin$|^ch$|^cm$|^mm$|^in$|^pt$|^pc$/i.test(ident)){
tt = Tokens.LENGTH;
} else if (/^deg|^rad$|^grad$/i.test(ident)){
tt = Tokens.ANGLE;
View
@@ -1025,7 +1025,7 @@
Assert.areEqual("vw", result.parts[0].units);
},
- testViewportRelativeMinValue: function(){
+ testViewportRelativeMaxValue: function(){
var parser = new Parser();
var result = parser.parsePropertyValue("50vmax");
View
@@ -313,9 +313,13 @@
"50.0REM" : [CSSTokens.LENGTH],
".5rEm" : [CSSTokens.LENGTH],
- "5vm" : [CSSTokens.LENGTH],
- "50.0VM" : [CSSTokens.LENGTH],
- ".5vM" : [CSSTokens.LENGTH],
+ "5vmax" : [CSSTokens.LENGTH],
+ "50.0VMAX" : [CSSTokens.LENGTH],
+ ".5vMax" : [CSSTokens.LENGTH],
+
+ "5vmin" : [CSSTokens.LENGTH],
+ "50.0VMIN" : [CSSTokens.LENGTH],
+ ".5vMin" : [CSSTokens.LENGTH],
"5ch" : [CSSTokens.LENGTH],
"50.0CH" : [CSSTokens.LENGTH],

0 comments on commit c81ebdb

Please sign in to comment.