Tobias Gritschacher has submitted this change and it was merged. Change subject: (minor) add wb.Snak.equal() ......................................................................
(minor) add wb.Snak.equal() Allows to check whether one Snak is equal to another. Compares the Snak's type and property ID. In case of PropertyValueSnak, also the value will be compared. Added tests for checking equality for Snaks constructed from JSON to their JSON donors. Change-Id: I4ba67322564b1a30968f0f1181721d56b0fe599a --- M lib/resources/wikibase.datamodel/wikibase.PropertyValueSnak.js M lib/resources/wikibase.datamodel/wikibase.Snak.js M lib/tests/qunit/wikibase.datamodel/Wikibase.snak.tests.js 3 files changed, 57 insertions(+), 5 deletions(-) Approvals: Tobias Gritschacher: Verified; Looks good to me, approved -- To view, visit https://gerrit.wikimedia.org/r/42984 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I4ba67322564b1a30968f0f1181721d56b0fe599a Gerrit-PatchSet: 2 Gerrit-Project: mediawiki/extensions/Wikibase Gerrit-Branch: master Gerrit-Owner: Daniel Werner <[email protected]> Gerrit-Reviewer: Daniel Werner <[email protected]> Gerrit-Reviewer: Tobias Gritschacher <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
