test(anchor): check that reserved keywords and object properties are usable in links

This commit is contained in:
SyntaxRules 2022-02-07 10:29:59 -07:00
parent ed51972315
commit 838c5dbecc
4 changed files with 337 additions and 0 deletions

View File

@ -0,0 +1,67 @@
<p>Reserved Keywords found at: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar</p>
<p><a href="">break</a></p>
<p><a href="">case</a></p>
<p><a href="">catch</a></p>
<p><a href="">class</a></p>
<p><a href="">const</a></p>
<p><a href="">continue</a></p>
<p><a href="">debugger</a></p>
<p><a href="">default</a></p>
<p><a href="">delete</a></p>
<p><a href="">do</a></p>
<p><a href="">else</a></p>
<p><a href="">export</a></p>
<p><a href="">extends</a></p>
<p><a href="">finally</a></p>
<p><a href="">for</a></p>
<p><a href="">function</a></p>
<p><a href="">if</a></p>
<p><a href="">import</a></p>
<p><a href="">in</a></p>
<p><a href="">instanceof</a></p>
<p><a href="">new</a></p>
<p><a href="">return</a></p>
<p><a href="">super</a></p>
<p><a href="">switch</a></p>
<p><a href="">this</a></p>
<p><a href="">throw</a></p>
<p><a href="">try</a></p>
<p><a href="">typeof</a></p>
<p><a href="">var</a></p>
<p><a href="">void</a></p>
<p><a href="">while</a></p>
<p><a href="">with</a></p>
<p><a href="">yield</a></p>
<p><a href="">enum</a></p>
<p><a href="">implements</a></p>
<p><a href="">interface</a></p>
<p><a href="">let</a></p>
<p><a href="">package</a></p>
<p><a href="">private</a></p>
<p><a href="">protected</a></p>
<p><a href="">public</a></p>
<p><a href="">static</a></p>
<p><a href="">yield</a></p>
<p><a href="">await</a></p>
<p><a href="">abstract</a></p>
<p><a href="">boolean</a></p>
<p><a href="">byte</a></p>
<p><a href="">char</a></p>
<p><a href="">double</a></p>
<p><a href="">final</a></p>
<p><a href="">float</a></p>
<p><a href="">goto</a></p>
<p><a href="">int</a></p>
<p><a href="">long</a></p>
<p><a href="">native</a></p>
<p><a href="">short</a></p>
<p><a href="">synchronized</a></p>
<p><a href="">throws</a></p>
<p><a href="">transient</a></p>
<p><a href="">volatile</a></p>
<p><a href="">null</a></p>
<p><a href="">true</a></p>
<p><a href="">false</a></p>
<p><a href="">arguments</a></p>
<p><a href="">get</a></p>
<p><a href="">set</a></p>

View File

@ -0,0 +1,133 @@
Reserved Keywords found at: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar
[break]()
[case]()
[catch]()
[class]()
[const]()
[continue]()
[debugger]()
[default]()
[delete]()
[do]()
[else]()
[export]()
[extends]()
[finally]()
[for]()
[function]()
[if]()
[import]()
[in]()
[instanceof]()
[new]()
[return]()
[super]()
[switch]()
[this]()
[throw]()
[try]()
[typeof]()
[var]()
[void]()
[while]()
[with]()
[yield]()
[enum]()
[implements]()
[interface]()
[let]()
[package]()
[private]()
[protected]()
[public]()
[static]()
[yield]()
[await]()
[abstract]()
[boolean]()
[byte]()
[char]()
[double]()
[final]()
[float]()
[goto]()
[int]()
[long]()
[native]()
[short]()
[synchronized]()
[throws]()
[transient]()
[volatile]()
[null]()
[true]()
[false]()
[arguments]()
[get]()
[set]()

View File

@ -0,0 +1,46 @@
<p>Object property names found at: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object</p>
<p><a href="">assign</a></p>
<p><a href="">create</a></p>
<p><a href="">defineProperty</a></p>
<p><a href="">defineProperties</a></p>
<p><a href="">entries</a></p>
<p><a href="">freeze</a></p>
<p><a href="">fromEntries</a></p>
<p><a href="">getOwnPropertyDescriptor</a></p>
<p><a href="">getOwnPropertyDescriptors</a></p>
<p><a href="">getOwnPropertyNames</a></p>
<p><a href="">getOwnPropertySymbols</a></p>
<p><a href="">getPrototypeOf</a></p>
<p><a href="">is</a></p>
<p><a href="">isExtensible</a></p>
<p><a href="">isFrozen</a></p>
<p><a href="">isSealed</a></p>
<p><a href="">keys</a></p>
<p><a href="">preventExtensions</a></p>
<p><a href="">seal</a></p>
<p><a href="">setPrototypeOf</a></p>
<p><a href="">values</a></p>
<p><a href="">prototype.constructor</a></p>
<p><a href="">prototype.<strong>proto</strong></a></p>
<p><a href="">prototype.<strong>defineGetter</strong></a></p>
<p><a href="">prototype.<strong>defineSetter</strong></a></p>
<p><a href="">prototype.<strong>lookupGetter</strong></a></p>
<p><a href="">prototype.<strong>lookupSetter</strong></a></p>
<p><a href="">prototype.hasOwnProperty</a></p>
<p><a href="">prototype.isPrototypeOf</a></p>
<p><a href="">prototype.propertyIsEnumerable</a></p>
<p><a href="">prototype.toLocaleString</a></p>
<p><a href="">prototype.toString</a></p>
<p><a href="">prototype.valueOf</a></p>
<p><a href="">constructor</a></p>
<p><a href=""><strong>proto</strong></a></p>
<p><a href=""><strong>defineGetter</strong></a></p>
<p><a href=""><strong>defineSetter</strong></a></p>
<p><a href=""><strong>lookupGetter</strong></a></p>
<p><a href=""><strong>lookupSetter</strong></a></p>
<p><a href="">hasOwnProperty</a></p>
<p><a href="">isPrototypeOf</a></p>
<p><a href="">propertyIsEnumerable</a></p>
<p><a href="">toLocaleString</a></p>
<p><a href="">toString</a></p>
<p><a href="">valueOf</a></p>

View File

@ -0,0 +1,91 @@
Object property names found at: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object
[assign]()
[create]()
[defineProperty]()
[defineProperties]()
[entries]()
[freeze]()
[fromEntries]()
[getOwnPropertyDescriptor]()
[getOwnPropertyDescriptors]()
[getOwnPropertyNames]()
[getOwnPropertySymbols]()
[getPrototypeOf]()
[is]()
[isExtensible]()
[isFrozen]()
[isSealed]()
[keys]()
[preventExtensions]()
[seal]()
[setPrototypeOf]()
[values]()
[prototype.constructor]()
[prototype.__proto__]()
[prototype.__defineGetter__]()
[prototype.__defineSetter__]()
[prototype.__lookupGetter__]()
[prototype.__lookupSetter__]()
[prototype.hasOwnProperty]()
[prototype.isPrototypeOf]()
[prototype.propertyIsEnumerable]()
[prototype.toLocaleString]()
[prototype.toString]()
[prototype.valueOf]()
[constructor]()
[__proto__]()
[__defineGetter__]()
[__defineSetter__]()
[__lookupGetter__]()
[__lookupSetter__]()
[hasOwnProperty]()
[isPrototypeOf]()
[propertyIsEnumerable]()
[toLocaleString]()
[toString]()
[valueOf]()