Last modified: 2013-04-22 16:16:46 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T47526, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 45526 - Implement QUnit assert.htmlEqual test helper
Implement QUnit assert.htmlEqual test helper
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
1.19
All All
: Unprioritized enhancement (vote)
: 1.21.0 release
Assigned To: Matthew Flaschen
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-28 00:10 UTC by Matthew Flaschen
Modified: 2013-04-22 16:16 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Matthew Flaschen 2013-02-28 00:10:58 UTC
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.
Comment 1 Krinkle 2013-02-28 00:38:02 UTC
(name it assert.htmlEqual per QUnit convention)
Comment 2 Matthew Flaschen 2013-03-06 01:04:33 UTC
Change at https://gerrit.wikimedia.org/r/#/c/52336/ needs review.

I also implemented notHtmlEqual.
Comment 3 Matthew Flaschen 2013-03-15 06:20:39 UTC
Merged.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links