Commit bdf90bfc by stv

Remove superfluous JSInput test

The behavior previously tested here was to check that if a JSInput
element was marked as not processed, re-walking the DOM *should* have
reinitialized it. Unfortunately, this behavior is not supported by the
underlying JSChannel library. In fact, if JSChannel detects an existing
channel with the same origin and scope, it throws an uncaught exception,
leaving the DOM in a "broken" state.

JSInput will prevent duplicates from being added, as long as we don't
manually update the `data-processed` attribute. This behavior is already
being tested.
parent 60a9e998
...@@ -15,15 +15,6 @@ describe("JSInput", function () { ...@@ -15,15 +15,6 @@ describe("JSInput", function () {
}); });
}); });
it('sets the data-processed attribute to true on subsequent load', function() {
var section1 = $(this.sections[0]);
var section2 = $(this.sections[1]);
section1.attr('data-processed', false);
JSInput.walkDOM();
expect(section1.attr('data-processed')).toEqual('true');
expect(section2.attr('data-processed')).toEqual('true');
});
it('sets the waitfor attribute to its update function', function () { it('sets the waitfor attribute to its update function', function () {
inputFields.each(function (index, item) { inputFields.each(function (index, item) {
expect(item).toHaveAttr('waitfor'); expect(item).toHaveAttr('waitfor');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment