@@ -983,7 +983,63 @@ describe("parseShorthand", () => {
983
983
] ) ;
984
984
985
985
it ( "should return undefined for invalid font-family" , ( ) => {
986
- const input = "medium Ahem!, sans-serif" ;
986
+ const input = "normal medium Goudy Bookletter 1911, sans-serif" ;
987
+ const output = parsers . parseShorthand ( input , shorthandForFont , true ) ;
988
+
989
+ assert . deepEqual ( output , undefined ) ;
990
+ } ) ;
991
+
992
+ it ( "should return undefined for invalid font-family" , ( ) => {
993
+ const input = "normal medium Red/Black, sans-serif" ;
994
+ const output = parsers . parseShorthand ( input , shorthandForFont , true ) ;
995
+
996
+ assert . deepEqual ( output , undefined ) ;
997
+ } ) ;
998
+
999
+ it ( "should return undefined for invalid font-family" , ( ) => {
1000
+ const input = "normal medium Red/Black, sans-serif" ;
1001
+ const output = parsers . parseShorthand ( input , shorthandForFont , true ) ;
1002
+
1003
+ assert . deepEqual ( output , undefined ) ;
1004
+ } ) ;
1005
+
1006
+ it ( "should return undefined for invalid font-family" , ( ) => {
1007
+ const input = 'normal medium "Lucida" Grande, sans-serif' ;
1008
+ const output = parsers . parseShorthand ( input , shorthandForFont , true ) ;
1009
+
1010
+ assert . deepEqual ( output , undefined ) ;
1011
+ } ) ;
1012
+
1013
+ it ( "should return undefined for invalid font-family" , ( ) => {
1014
+ const input = 'normal medium Lucida "Grande", sans-serif' ;
1015
+ const output = parsers . parseShorthand ( input , shorthandForFont , true ) ;
1016
+
1017
+ assert . deepEqual ( output , undefined ) ;
1018
+ } ) ;
1019
+
1020
+ it ( "should return undefined for invalid font-family" , ( ) => {
1021
+ const input = "normal medium Ahem!, sans-serif" ;
1022
+ const output = parsers . parseShorthand ( input , shorthandForFont , true ) ;
1023
+
1024
+ assert . deepEqual ( output , undefined ) ;
1025
+ } ) ;
1026
+
1027
+ it ( "should return undefined for invalid font-family" , ( ) => {
1028
+ const input = "normal medium test@foo, sans-serif" ;
1029
+ const output = parsers . parseShorthand ( input , shorthandForFont , true ) ;
1030
+
1031
+ assert . deepEqual ( output , undefined ) ;
1032
+ } ) ;
1033
+
1034
+ it ( "should return undefined for invalid font-family" , ( ) => {
1035
+ const input = "normal medium #POUND, sans-serif" ;
1036
+ const output = parsers . parseShorthand ( input , shorthandForFont , true ) ;
1037
+
1038
+ assert . deepEqual ( output , undefined ) ;
1039
+ } ) ;
1040
+
1041
+ it ( "should return undefined for invalid font-family" , ( ) => {
1042
+ const input = "normal medium Hawaii 5-0, sans-serif" ;
987
1043
const output = parsers . parseShorthand ( input , shorthandForFont , true ) ;
988
1044
989
1045
assert . deepEqual ( output , undefined ) ;
0 commit comments