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.
This commit is contained in:
stv
2014-06-05 10:00:59 -07:00
parent 60a9e99871
commit bdf90bfcfb

View File

@@ -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 () {
inputFields.each(function (index, item) {
expect(item).toHaveAttr('waitfor');