OLD | NEW |
1 // Compares a mutation record to a predefined one | 1 // Compares a mutation record to a predefined one |
2 // mutationToCheck is a mutation record from the user agent | 2 // mutationToCheck is a mutation record from the user agent |
3 // expectedRecord is a mutation record minted by the test | 3 // expectedRecord is a mutation record minted by the test |
4 // for expectedRecord, if properties are ommitted, they get default ones | 4 // for expectedRecord, if properties are ommitted, they get default ones |
5 function checkRecords(target, mutationToCheck, expectedRecord) { | 5 function checkRecords(target, mutationToCheck, expectedRecord) { |
6 var mr1; | 6 var mr1; |
7 var mr2; | 7 var mr2; |
8 | 8 |
9 | 9 |
10 function checkField(property, isArray) { | 10 function checkField(property, isArray) { |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 } | 67 } |
68 | 68 |
69 test.step( | 69 test.step( |
70 function () { | 70 function () { |
71 (new MutationObserver(moc)).observe(node, mutationObserverOptions); | 71 (new MutationObserver(moc)).observe(node, mutationObserverOptions); |
72 mutationFunction(); | 72 mutationFunction(); |
73 } | 73 } |
74 ); | 74 ); |
75 return mutationRecordSequence.length | 75 return mutationRecordSequence.length |
76 } | 76 } |
OLD | NEW |