bigskysoftware / idiomorph

A DOM-merging algorithm
BSD 2-Clause "Simplified" License
631 stars 31 forks source link

Fix failing test #48

Open seanpdoyle opened 2 months ago

seanpdoyle commented 2 months ago

Follow-up to #34

As mentioned in a comment on #34, the test suite wasn't executed when the code was initially contributed. When opening test/index.html locally in a browser, there is a single test failure:

does not ignore body when ignoreActiveValue is true and no element has focus ‣
  AssertionError: expected <body …(1)>…(28)</body> to equal <input value="bar"></input>@[native code]

This commit resolves that failure by changing the test to more accurately exercise the desired behavior.