wymeditor/wymeditor — pull request #496 by mightyiam (2014-04-30 12:15:28+00:00)
Title: Standardize DOM testing

I want to beautiful HTML in failed test.

For this, a beautification library should be added and the `htmlEquals` function should be altered to pass the comperands (see what I did there?) through that library's function.

But! There are some tests that extract the actual HTML from the DOM directly, bypassing `.xhtml` because that provides parsed HTML and these tests require unparsed HTML.

And more of these tests are in pending pull requests.

These tests implemented their own DOM fetching and then didn't use `htmlEquals`.

So before adding beautification support in `htmlEquals`, this merge is important. It:

1. Changes the `htmlEquals` to `wymEqual`*. Single form `wymEqual` and not `wymEquals` to be consistent with qUnit's `deepEqual`, `strictEqual`, and perhaps more.
1. Adds an option to `wymEqual` of DOM testing.
1. Alters all the above mentioned tests to use `wymEqual` with the DOM testing option.

This makes two tests fail that were previously passing. Two of them are in IE8 and they seem to be due to a malfunction in the HTML normalizer.

It was already discovered that the normalizer has other malfunctions and must be fixed.

So, I would say that the failing tests should not prevent merge of this branch.