@@ -43,7 +43,6 @@ window.nonKeyedDetector_reset = function() {
43
43
window.nonKeyedDetector_tradded = [];
44
44
window.nonKeyedDetector_trremoved = [];
45
45
window.nonKeyedDetector_removedStoredTr = [];
46
- window.trToBeRemoved = null;
47
46
}
48
47
49
48
window.nonKeyedDetector_setUseShadowDom = function(useShadowDom ) {
@@ -72,9 +71,7 @@ window.nonKeyedDetector_instrument = function() {
72
71
let trs = [];
73
72
nodeList.forEach(n => {
74
73
if (n.tagName==='TR') {
75
- if (!trToBeRemoved || trToBeRemoved !== n) {
76
- trs.push(n);
77
- }
74
+ trs.push(n);
78
75
trs = trs.concat(filterTRInNodeList(n.childNodes));
79
76
}
80
77
});
@@ -118,14 +115,6 @@ window.nonKeyedDetector_storeTr = function() {
118
115
}
119
116
window.storedTr = node.querySelector('tr:nth-child(2)');
120
117
}
121
- window.markTrAsToBeRemoved = function(indexOfTr) {
122
- trToBeRemoved = document.querySelector('table'); // <table>
123
-
124
- if (trToBeRemoved) {
125
- trToBeRemoved = trToBeRemoved.children[0]; // <tbody>
126
- trToBeRemoved = trToBeRemoved.children[indexOfTr]; // <tr> list
127
- }
128
- }
129
118
window.nonKeyedDetector_reset();
130
119
` ;
131
120
@@ -303,9 +292,6 @@ async function runBench(frameworkNames: string[]) {
303
292
await driver . executeScript ( "nonKeyedDetector_storeTr()" ) ;
304
293
let text = await getTextByXPath ( driver , `//tbody/tr[2]/td[2]/a` , false ) ;
305
294
await driver . executeScript ( "window.nonKeyedDetector_reset()" ) ;
306
- if ( ! keyedRun ) {
307
- await driver . executeScript ( "window.markTrAsToBeRemoved(999)" ) ;
308
- }
309
295
await clickElementByXPath ( driver , `//tbody/tr[2]/td[3]/a/span[1]` , false ) ;
310
296
await testTextNotContained ( driver , `//tbody/tr[2]/td[2]/a` , text , config . TIMEOUT , false ) ;
311
297
res = await driver . executeScript ( "return nonKeyedDetector_result()" ) ;
@@ -365,4 +351,4 @@ async function main() {
365
351
}
366
352
}
367
353
368
- main ( ) ;
354
+ main ( ) ;
0 commit comments