Skip to content

Commit

Permalink
basic cleanup: tabs, stray message variabel
Browse files Browse the repository at this point in the history
  • Loading branch information
darobin committed Dec 22, 2014
1 parent bf2e840 commit dd6e142
Show file tree
Hide file tree
Showing 2 changed files with 219 additions and 217 deletions.
4 changes: 3 additions & 1 deletion dom/common.js
Expand Up @@ -921,6 +921,8 @@ function myInsertNode(range, node) {
* this to testharness.js?
*/
function assertNodesEqual(actual, expected, msg) {
// actual.normalize();
// expected.normalize();
if (!actual.isEqualNode(expected)) {
msg = "Actual and expected mismatch for " + msg + ". ";

Expand All @@ -930,7 +932,7 @@ function assertNodesEqual(actual, expected, msg) {
&& actual.nodeValue === expected.nodeValue
&& actual.childNodes.length === expected.childNodes.length,
"First differing node: expected " + format_value(expected)
+ ", got " + format_value(actual));
+ ", got " + format_value(actual) + " [" + msg + "]");
actual = nextNode(actual);
expected = nextNode(expected);
}
Expand Down

0 comments on commit dd6e142

Please sign in to comment.