Skip to content

Commit b98fee4

Browse files
author
Friedrich W. H. Kossebau
committed
Fix collecting removed properties in tests' MetadataChangeListener
1 parent 40acf3a commit b98fee4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

webodf/tests/gui/MetadataControllerTests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ gui.MetadataControllerTests = function MetadataControllerTests(runner) {
124124
});
125125
changes.removedProperties.forEach(function (key) {
126126
delete changedMetadata.setProperties[key];
127-
if (changedMetadata.removedProperties.indexOf(key) !== -1) {
127+
if (changedMetadata.removedProperties.indexOf(key) === -1) {
128128
changedMetadata.removedProperties.push(key);
129129
}
130130
});

0 commit comments

Comments
 (0)