Add a tokenizer for features in window.open()

This commit is contained in:
Boyan Ding 2019-03-10 23:25:38 +08:00
parent 7bdfad92a5
commit f261799e64
3 changed files with 106 additions and 48 deletions

View file

@ -1,19 +0,0 @@
[open-features-tokenization-noopener.html]
[feature `name` should be converted to ASCII lowercase]
expected: FAIL
[invalid feature names should not tokenize as "noopener"]
expected: FAIL
[Integer value of 0 should not activate the feature]
expected: FAIL
[Invalid feature names should not tokenize as "noopener"]
expected: FAIL
[Integer value of 0 should not activate "noopener"]
expected: FAIL
[Feature "noopener" should be converted to ASCII lowercase]
expected: FAIL

View file

@ -1,19 +0,0 @@
[open-features-tokenization-noreferrer.html]
[Tokenizing "noreferrer" should ignore window feature separators except "," after initial "=" and before value]
expected: FAIL
[Tokenizing "noreferrer" should read characters until first window feature separator as `value`]
expected: FAIL
[After "noreferrer", tokenization should skip window features separators that are not "=" or ","]
expected: FAIL
[Integer values other than 0 should activate the feature]
expected: FAIL
[Tokenization of "noreferrer" should skip window features separators before feature]
expected: FAIL
[Feature "noreferrer" should be converted to ASCII lowercase]
expected: FAIL