Page MenuHomePhabricator

Implement QUnit assert.htmlEqual test helper
Closed, ResolvedPublic


Add an assertEqualHtml QUnit test helper. It will take two HTML strings and assert that they are recursively equivalent, ignoring irrelevant differences (e.g. attribute quoting and order).

If they are not equal, it will provide a structural (not HTML string) diff.

Version: 1.19
Severity: enhancement



Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:33 AM
bzimport set Reference to bz45526.

(name it assert.htmlEqual per QUnit convention)

Change at needs review.

I also implemented notHtmlEqual.

Restricted Application added a subscriber: StudiesWorld. · View Herald TranscriptJan 28 2016, 6:01 PM