mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 23:05:35 +00:00
ef513244be
Some tests were using the wrong node in the expected data, but because only the summaries were compared, this would succeeed as long as the type and length were equal (and paragraphs of length 1 are quite common in our test data). Fixed equalNodeSelection() to compare each node by reference as well as comparing the summaries. If one of the equality tests fails, the summaries will still be displayed as expected/actual data (even though they might be equal), and the message will have "(reference equality for selection[3].node)" appended to it. This change broke the tests because a few test cases had bad data, fixed those in this commit as well. Change-Id: Iab420cf29d47f7368c8a9ce79f6309efae75685c |
||
---|---|---|
.. | ||
ce | ||
dm | ||
image.png | ||
index.html | ||
ve.BranchNode.test.js | ||
ve.Document.test.js | ||
ve.example.js | ||
ve.Factory.test.js | ||
ve.LeafNode.test.js | ||
ve.Node.test.js | ||
ve.qunit.js | ||
ve.Range.test.js | ||
ve.test.js |