@abide/harness 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/measure/install.ts +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abide/harness",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Ratios against hand-written code, counts of the work an op did, and gates whose revert can be run — three measurement lanes for anything that renders, on bun",
|
|
6
6
|
"license": "MIT",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"@playwright/test": "^1.64.0",
|
|
58
|
-
"@abide/abide": ">=0.
|
|
58
|
+
"@abide/abide": ">=0.113.0"
|
|
59
59
|
},
|
|
60
60
|
"peerDependenciesMeta": {
|
|
61
61
|
"@playwright/test": {
|
package/src/measure/install.ts
CHANGED
|
@@ -82,6 +82,7 @@ const DECLARED: [interfaceName: string, member: string, role: Role][] = [
|
|
|
82
82
|
['Document', 'prepend', 'insertArgs'],
|
|
83
83
|
['Document', 'replaceChildren', 'replaceChildren'],
|
|
84
84
|
['Element', 'setAttribute', 'attribute'],
|
|
85
|
+
['Element', 'setAttributeNS', 'attribute'],
|
|
85
86
|
['Element', 'removeAttribute', 'attribute'],
|
|
86
87
|
['Element', 'toggleAttribute', 'attribute'],
|
|
87
88
|
['Element', 'className', 'attribute'],
|
|
@@ -91,13 +92,14 @@ const DECLARED: [interfaceName: string, member: string, role: Role][] = [
|
|
|
91
92
|
// happy-dom gives `HTMLTemplateElement` its OWN `innerHTML`, which shadows the one
|
|
92
93
|
// above — so a `template.innerHTML` write reaches no patched member, the
|
|
93
94
|
// outermost-only guard never engages, and the parse's internal `createElementNS`
|
|
94
|
-
//
|
|
95
|
+
// calls are counted as creates of their own instead. The compiled arm makes every row from a
|
|
95
96
|
// template, so that is the whole arm. Chromium has no own descriptor here and the
|
|
96
97
|
// installer shadows, which is how the two lists stay identical.
|
|
97
98
|
['HTMLTemplateElement', 'innerHTML', 'html'],
|
|
98
99
|
['Element', 'outerHTML', 'html'],
|
|
99
100
|
['CharacterData', 'data', 'data'],
|
|
100
101
|
['Document', 'createElement', 'create'],
|
|
102
|
+
['Document', 'createElementNS', 'create'],
|
|
101
103
|
['Document', 'createTextNode', 'create'],
|
|
102
104
|
['Document', 'createComment', 'create'],
|
|
103
105
|
['Document', 'importNode', 'create'],
|
|
@@ -127,7 +129,6 @@ const DECLARED: [interfaceName: string, member: string, role: Role][] = [
|
|
|
127
129
|
['Node', 'normalize', 'refused'],
|
|
128
130
|
['Node', 'nodeValue', 'refused'],
|
|
129
131
|
['Element', 'insertAdjacentText', 'refused'],
|
|
130
|
-
['Element', 'setAttributeNS', 'refused'],
|
|
131
132
|
['Element', 'removeAttributeNS', 'refused'],
|
|
132
133
|
['Element', 'setAttributeNode', 'refused'],
|
|
133
134
|
['Element', 'removeAttributeNode', 'refused'],
|
|
@@ -138,7 +139,6 @@ const DECLARED: [interfaceName: string, member: string, role: Role][] = [
|
|
|
138
139
|
['CharacterData', 'replaceData', 'refused'],
|
|
139
140
|
['Text', 'splitText', 'refused'],
|
|
140
141
|
['Document', 'write', 'refused'],
|
|
141
|
-
['Document', 'createElementNS', 'refused'],
|
|
142
142
|
]
|
|
143
143
|
|
|
144
144
|
/** A fresh `Work` with every counted row at 0 and the three published rows at `null`. */
|