blob: ed27dc45095679ac826a7a47c8ed784e1bbea38d [file] [edit]
ident() rejects an identifier past the length WebKit allows. There is no specified limit, so this is a WebKit implementation detail: ident() collapses its argument into a single token, which means the substitution token limit no longer bounds the length and nesting would multiply it at every level.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS identLength(`--result: ident("${repeated(1024)}")`) is 1024
PASS identLength(`--result: ident("${repeated(1025)}")`) is 0
PASS identLength(`--a: ident("${repeated(100)}"); --result: var(--a)`) is 100
PASS identLength(`--a: ident("${repeated(100)}"); --result: ident(${"var(--a) ".repeat(100)})`) is 0
PASS successfullyParsed is true
TEST COMPLETE