Tests: Handle null values when comparing items.

This commit is contained in:
Jürg Lehni 2016-09-20 18:43:02 -04:00
parent 3a49ac4015
commit b4f6cde203

View file

@ -243,6 +243,8 @@ var compareItem = function(actual, expected, message, options, properties) {
options = options || {};
if (options.rasterize) {
comparePixels(actual, expected, message, options);
} else if (!actual || !expected) {
QUnit.strictEqual(actual, expected, message);
} else {
if (options.cloned)
QUnit.notStrictEqual(actual.id, expected.id,